Skip to content

Guide

Muse Code in Foundry VTT: one settings file holds Familiar and the model you play on.

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.

Sign in, then turn off Contributor mode

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.

Steps 2 and 3 of the Muse Code card in Familiar's settings. Step 2, Install Muse Code, holds the PowerShell install line and the muse --version check in a new window. Step 3, Sign in to Muse Code, holds muse login and the browser approval with a Meta account.
The install and sign-in steps of Muse Code's card as Familiar prints them on Windows, shot in a test world.

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.

Where Muse Code keeps its settings

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.

The card writes the file; you only quit first

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.

The Muse Code card in Familiar's settings, from below the step 4 command box. Step 4 expects no output and says to quit Muse Code first. Step 5, Tell Muse Code when to use Familiar, holds the AGENTS.md path, its note with a Copy text button and a new-session reminder.
Muse Code's card from under the step 4 command box, which holds the world's secret, through the AGENTS.md note of step 5, shot in a test world.

What /mcp says, then what to type

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.

Step 6 of the Muse Code card in Familiar's settings, Verify Connection. It says to open PowerShell and type muse, choose Trust and continue, check Contributor mode under Model in /settings, run /mcp until familiar shows connected, and ask the verify line, which has a Copy button. The rows MCP Server: Not running and Muse Code: Waiting for server follow, with a Reconnect button. A note closes the step: check Contributor mode before your first game, because on a subscription it starts switched on.
The last step of Muse Code's card and the Contributor note under it, shot in a test world with no AI app connected.
  1. Start Muse Code

    Type muse in a new terminal. On Windows, answer its sandbox question once.

  2. Trust the folder

    Choose Trust and continue when Muse Code asks whether you trust this folder.

  3. Read /mcp

    Run /mcp and look for familiar on connected. If it says starting, run it again.

  4. Send the verify line

    Paste the line below. A reply that names your world means Muse Code reaches it.

  • The verify line
    Use Familiar's get-world-info tool

Every tool, from the first message

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]).
Muse Code's reply to "Use Familiar to roll a d20 in Foundry" in a test world, after it found Familiar's dice tool through its own search and the roll was approved.
  • Characters & Actors
  • Scenes & Tokens
  • Knowledge & Memory

First asks to try

Five 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.

A Foundry chat card from Bramble, Gamemaster, headed MCP Roll: 1d20, with the die showing 14.
The card Familiar posted in Foundry's chat log for that roll; Bramble is the test world's Gamemaster character.
  • Read the party
    List the party members with their current hit points and armour class.
  • See the whole set
    List Familiar's tool bundles and tell me which ones are switched on.
  • Move the players
    Pull every connected player to the scene I have open.
  • Check the table
    Check the table for questions from my players and answer the oldest one in the Foundry chat.
  • Roll in Foundry
    Use Familiar to roll a d20 in Foundry

When the installer or settings.json gets in the way

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.

  • The installer stopped on an error about Get-FileHash

    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.

  • muse --version fails in the same window the installer ran in

    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.

  • /mcp says "No MCP servers configured." after you ran the card's command

    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.

  • Muse Code reports an MCP configuration error and says MCP is disabled for this runtime

    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 shows failed, with the transport closed unexpectedly under it

    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.

  • Every muse command stops with a settings error, after you edited the file yourself

    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.

What your Meta account pays for, and what it does not

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.

More in Pick your assistant

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.