Claude in Foundry: Desktop or Code
Anthropic builds both clients, so no agent app sits in the path. How you add each one, and what differs between them.
Guide
Familiar (familiar-vtt) is an AI co-pilot for Foundry VTT, licensed through familiarvtt.com. Muse Code is Meta's coding agent for the terminal, a separate product from Meta's Muse app, and through Familiar it reaches your Foundry world over MCP. At the end, Muse Code is signed in to your Meta account with Contributor mode off. Familiar's entry sits in Muse Code's settings file, and a d20 you ask for in the terminal lands in your Foundry chat.
Install Muse Code from its card, sign in with your Meta account, and turn off Meta's Contributor mode before you connect a game. Muse Code's card sits on Familiar's MCP / Subs tab and opens on Install Node.js, because Familiar requires Node.js 22 or newer. Step 2 is Meta's install line, one line for your system. After it runs, close that window and open a new one, where muse --version prints a version number.
In the new window, type muse login and press Enter. Muse Code prints a sign-in link and a code, and a second Enter opens the link in your browser. Check that the code there matches, approve it with your Meta account, and the terminal says Logged in. The muse login command leaves settings.json alone.
Meta's Muse Code subscriptions start in Contributor mode, which lets Meta train its models on your content. To turn it off, open /settings inside Muse Code and switch off the Contributor mode row under Model, or start Muse Code with --contributor-mode off. Meta shows that row only while you are signed in with an active subscription.
Without a subscription, Meta's training tier is any model whose id ends in -contributor. Type /models inside Muse Code to see which model you are on, and pick one without that ending. In Familiar's first test, an account without a subscription was moved onto a -contributor model during its first session, with no model picker on screen.

In Meta's words, Contributor mode on a subscription gives "more usage in exchange for letting Meta use your content to train future models". Without a subscription, the -contributor models run at "heavily discounted token prices". Of the Standard models, Meta writes that "your content is not used to train Meta models". Over MCP, your content includes everything Familiar reads from your world for the model, your players' chat messages included.
Muse Code keeps its settings in one file, settings.json, in %USERPROFILE%\.config\muse on Windows and ~/.config/muse on macOS and Linux. The file holds the model your account runs on, the MCP servers you added for yourself and the rest of Muse Code's settings. Familiar's entry goes in there too. When the XDG_CONFIG_HOME variable is set, the muse folder sits under it instead, and the card's command follows it.
Muse Code also has a muse mcp add command of its own. Familiar's card hands you a single command that writes the whole familiar entry with this world's secret in it.
Quit Muse Code, then run the command from step 4 of its card in PowerShell or a terminal, outside Muse Code. Muse Code loads its MCP servers only when it starts, so an entry written while it runs waits for the next start. The command adds a familiar entry with this world's secret, keeps everything else in the file and saves the previous version beside it as settings.json.bak. Success prints nothing at all.
A file the command cannot read as Muse Code settings stays exactly as it was, and one line on screen says it "was not changed". Rebuilding that file would drop the model id, and an account without a subscription would land back on a -contributor model by itself. Fix the file, then run the command again.
Step 5 of the card gives you a note for AGENTS.md in the same folder, because Muse Code never shows the model Familiar's own instructions. With the note, Muse Code reaches for Familiar whenever your game comes up. Without it, a vague dice ask can end in an invented roll, and Muse Code loads another coding agent's personal rules file if your home folder has one. Muse Code reads AGENTS.md when a session starts, so start a new one after saving it.

Start Muse Code, check that /mcp shows familiar as connected, then send the verify line. On Windows, the first start also sets up Muse Code's sandbox. Muse Code explains the two local Windows accounts it creates and asks Yes or No, and Windows can show a User Account Control prompt. Familiar's entry connected in Familiar's own test with that sandbox set up.
The first start in a folder asks whether you trust it. In a folder you have not trusted, Muse Code starts no MCP server, and /mcp marks familiar as "withheld: workspace untrusted" until you trust it.
Muse Code's /mcp lists each server with a status: starting for the first seconds, then connected, or failed with an error line under it. A reply to the verify line that names your world proves the link. The card's status row on Familiar's MCP / Subs tab then reads Muse Code: Connected.

Type muse in a new terminal. On Windows, answer its sandbox question once.
Choose Trust and continue when Muse Code asks whether you trust this folder.
Run /mcp and look for familiar on connected. If it says starting, run it again.
Paste the line below. A reply that names your world means Muse Code reaches it.
Use Familiar's get-world-info tool
Muse Code reaches every Familiar tool from the first message and finds each one through its own tool search. Muse Code loads a small tool catalogue whole and keeps a large one behind that search. Familiar's full set is large enough to stay behind it, so in Familiar's test a first request cost about as much context as no server at all. A scene tool, a macro or the knowledge base answers on the first ask, with no bundle to switch on.
Muse Code's own approval setting decides which calls ask you first. Under on-request approvals, Meta's docs say a tool its server marks read-only runs without a prompt, and Familiar marks its read tools that way. A sheet, a scene or the party's hit points come back unasked. A roll posts to Foundry's chat, and in Familiar's test run Muse Code stopped at its approval prompt until the roll was allowed.
Muse Code runs whatever you put into Foundry before the session, an imported module or your own prep notes laid out as journals by Familiar's campaign tools, and invents no story of its own.
![Muse Code's terminal window. A tool line reads roll-dice(1d20) · familiar, with a tick and 9.2s, and Muse Code answers: Rolled a d20 in Foundry via Familiar. Result: 14 (1d20, total 14, dice [14]).](/assets/screenshots/muse-code-terminal-roll-d20.webp)
Characters & ActorsScenes & TokensKnowledge & MemoryFive asks each test one part of the link: a read, the full tool set, a change in Foundry, your players' questions and a dice roll.
The party ask returns armour class on D&D 5e, and hit points on other systems where Familiar recognises them. The table ask finds questions only while Familiar's Chat tab has no provider; with one set, the built-in chat answers your players itself. The roll ask names Familiar, as the test run had to without an AGENTS.md note.

List the party members with their current hit points and armour class.
List Familiar's tool bundles and tell me which ones are switched on.
Pull every connected player to the scene I have open.
Check the table for questions from my players and answer the oldest one in the Foundry chat.
Use Familiar to roll a d20 in Foundry
Six snags belong to Muse Code alone: two in its installer, two in its settings file and two in how it starts. The connect guide keeps the list of faults any MCP client can hit.
You ran Meta's install line from PowerShell 7, where it fails. Open Windows PowerShell, the one that ships with Windows, and paste the same line there. Meta has confirmed the issue. It also breaks the background updates Muse Code starts from PowerShell 7, so run Muse Code from Windows PowerShell as well.
The installer puts Muse Code under your local app data folder and adds that folder to your PATH, which only a window opened after the install reads. Open a new window, run muse --version, and sign in from there.
Muse Code was open while the command ran, and it loads its MCP servers only when it starts. The entry is in the file, so quit Muse Code, start it again and run /mcp once more. If it still says so, the command did not write the file Muse Code reads. One cause is an XDG_CONFIG_HOME variable set in one window and not in the other.
The file most likely holds both spellings of the servers key, mcpServers and mcp_servers, usually after a hand edit. With both present, Muse Code loads no server at all and refuses to save its own settings. Run the card's command again, which folds the two into one, then start Muse Code again. If the error stays, the problem is inside one of the server entries. Never add the second spelling by hand.
Familiar's helper quit before Muse Code finished talking to it. On the very first start, the helper's download can outrun Muse Code's wait, so quit Muse Code and start it once more, and the download is done by then. A second AI app running with a different secret shows the same symptom, and the connect guide's shared failures cover that case.
Either the JSON no longer parses or the schema_version line went missing. Meta's docs say a file without that line stops every command with "malformed settings file". A missing schema_version alone is fixed by running the card's command again, which adds the line back. A file that no longer parses needs settings.json.bak from the same folder, or a fix by hand, before the command runs again.
A Muse Code subscription pays for the model's side of the game. Muse Code makes every model call on your Meta account, and nothing is metered per token on top. A long session can use up the subscription's five-hour or weekly allowance. Without a subscription, Muse Code bills your Meta account per use.
Voices, pictures and music are not Muse Code's to pay. They run in Foundry on the provider keys stored in Familiar. Familiar's own licence is a separate line again.
Anthropic builds both clients, so no agent app sits in the path. How you add each one, and what differs between them.
Codex is the route in, inside the ChatGPT desktop app or as Codex CLI, on every plan including Free.
Antigravity or a Gemini API key in Familiar's own chat window: which suits your table, and the snags only Antigravity has.
New to Familiar? I'm Ryan, the person who built it. The Discord is small, so if you join now I'll help you get set up myself.