Set Filament up, or find what is missing, with its own command line and Settings — status, models, API keys, coding agents (Claude Code, Codex, Cursor, Grok Build, Qoder, Antigravity) with their accounts, sign-in, plans (Library › Accounts & limits) and updates, memory's model, settings by path, the desktop app, where things live, exit codes and troubleshooting. Load it when the person asks how to connect a key or an agent, why no model answers, how to change a setting, or to check their setup.
35 stars
0 votes
0 copies
1 view
Added November 22, 2026
ai-agentsgoshellbashnodegitapi
Works with
claude code
cursor
terminal
cli
api
mcp
Security analysis
F26/100
criticalPipes output to a shell interpreter
mediumUses curl or wget to download content
criticalDownloads and executes remote scripts — classic supply chain attack
mediumInstalls packages at runtime which could introduce malicious dependencies
mediumInstalls packages at runtime which could introduce malicious dependencies
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Filament Setup?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/invertiblematrix-filament-setup)
---
name: filament-setup
description: Set Filament up, or find what is missing, with its own command line and Settings — status, models, API keys, coding agents (Claude Code, Codex, Cursor, Grok Build, Qoder, Antigravity) with their accounts, sign-in, plans (Library › Accounts & limits) and updates, memory's model, settings by path, the desktop app, where things live, exit codes and troubleshooting. Load it when the person asks how to connect a key or an agent, why no model answers, how to change a setting, or to check their setup.
---
# Setting Filament up
Filament names its command line (`… --help`) in your Environment section — or, for a coding agent (Claude Code,
Codex…), in what Filament's server tells you as it connects. Every command below is that line with the command after
it; `filament` stands for it here.
## In seven lines
1. Look first: `filament status` says what runs, what answers, which keys and coding agents are set up, and memory.
2. A key is the person's to type. Never ask for one in the chat, never put one on a command line: they run
`filament keys add <provider>` in a terminal of their own (it shows stars), or Settings › Providers › **Add a
provider**. Where your chat has the `secret` tool (its **Ask for secrets** switch), ask with it: they type it on a
card no model sees, for a provider Filament has (tested first), a coding agent's sign-in (never your own) or a
Space app's secret (skill **filament-tools**).
3. A sign-in is the person's too: `filament agents sign-in <id>` opens their browser, or gives them a line to run.
4. Change nothing the person did not ask for. Say the command, what it will do, and let them say yes.
5. Read the exit code: 0 done, 1 failed, 2 typed wrong, 3 no Filament answers, 4 needs the person (a terminal, a
browser), 5 busy (a turn runs), 6 another Filament of this data folder starts or runs, 130 stopped.
6. Never run `filament stop`, `restart` or `update`, and never start a second Filament: your own turn runs inside this
one (each is refused with exit 5, or cuts your turn with `--force`). Tell the person the command instead.
7. While the desktop app runs, a change that lets agents do more unasked (Full access, a rule, a root folder, keys)
is refused from a shell (403): it needs the person's press in the app. Say where the switch is.
## What each command is for
| Ask | Command | Changes nothing? |
| --- | --- | --- |
| Where it stands | `filament status [--json]` | yes |
| The models a chat can run on | `filament models [--json]` | yes |
| The coding agents, each account and who it is signed in as | `filament agents [list]` | yes |
| The providers with a key (masked) | `filament keys [list]` | yes |
| Memory, and the model it learns with | `filament memory [show]` | yes |
| The newest chats | `filament chats [--json]`, `chats archived` | yes |
| A chat's turn stopped; a chat archived or back, pinned or let go, renamed; a thread detached | `filament chats stop\|archive\|unarchive\|detach\|pin\|unpin <id>`, `chats rename <id> <title>` | no |
| One setting | `filament settings get <path>` | yes |
| What a chat, a project's chats or every new chat runs with, and where each value comes from | `filament settings show --chat <id>`, `--project <folder>` or `--defaults` (`--all`, or a setting after `show`) | yes |
| Everything checked: config, the running server, every agent | `filament doctor` (`--turn` runs one real word per agent and costs a little; `--agent <id>`) | yes, once the data folder exists (see below) |
| The data folder and config file | `filament where` | yes, once the data folder exists (see below) |
| A provider's key | `filament keys add [provider] [--plan <id>] [--prefix <name>] [--no-test]` — the person runs it | no |
| Is that key right | `filament keys test <id>` | no — it calls the provider |
| Remove a key | `filament keys remove <id> [--also]` (asks; `--also` takes its routes) | no |
| A provider's fields: address, key set or not, prefix, billing, the models it hides, the routes that name it | `filament keys show <id>` | yes |
| A provider's field changed (its name, switch, address, billing, hidden models, prefix…), a new key, its headers | `filament keys set <id> <field> <value>`, `keys set <id> key` (stars, or `--key-stdin`), `keys set <id> headers --json-stdin` (skill **filament-proxy**) | no |
| Where each model goes first, its backups, failover | `filament routes`, `routes show <model>` | yes |
| A model's backups set | `filament routes backups <model> <provider>=<model there> …` (`--none` for none) | no |
| Find, install, connect a coding agent | `filament agents detect`, `agents install <id>`, `agents connect <id>` | no |
| Sign an agent in, check, out | `filament agents sign-in <id> [--account <name>] [--way <id>] [--from <provider id>] [--no-open]`, `agents check <id>`, `agents sign-out <id>` | no |
| An agent off | `filament agents off <id>` | no |
| An agent's accounts: one added beside its Default, renamed, turned off or on, removed | `filament agents account add <id> <name>`, `account rename\|on\|off\|remove <id> --account <name>` | no |
| The model a Space's agents run on, its effort, what an app's ask does; a routine's model | `filament space settings [--project <folder>]`, `space set model\|effort\|asks <value> [--project <folder>]`, `space routines --project <folder>`, `space routine <id> model <name> --project <folder>` (skill **filament-spaces**) | `settings`, `routines` and `routine <id>` only read |
| Memory on or off, its model | `filament memory on`, `memory off`, `memory model <name, auto or off>` | no |
| A setting changed | `filament settings set <path> <value>` | no |
| The saved agents and teams, one whole | `filament library agents`, `library agents show <tag>`, `library teams`, `library teams show <key>` | yes |
| A saved agent or a team made, changed, removed, or used by your agent | `filament library agents add\|edit\|remove\|use <tag>`, `library teams add\|edit\|remove\|use <key>` (skills **filament-agents**, **filament-teams**) | no |
| The connectors, skills and plugins at a place, the saved flows | `filament library connectors`, `library skills`, `library plugins`, `library flows` (`--chat <id>`, `--project <folder>`) | yes |
| A connector added, changed, switched, tested or removed; a skill added, written, switched or removed; a plugin switched; a saved flow drafted into a chat | `filament library connectors add\|edit\|on\|off\|test\|remove <name>`, `library skills add\|write\|on\|off\|inherit\|remove`, `library plugins on\|off <id>`, `library flows draft <key> --chat <id> <goal>` (skills **filament-tools**, **filament-flows**) | no |
| A chat's setting, a project's or every new chat's (effort, mode, the model new chats start on) | `filament set <setting> <value> --chat <id>`, `--project <folder>` or `--defaults`; `--unset` for the layers below | no |
| Open the harness in a browser, paired | `filament open [console] [--no-open]` | no |
| Send a chat a message | `filament chat [--chat <id>] [--model <name>] [--folder <path>] <message>` | no |
| The whole walk-through | `filament setup` — the person runs it, at a terminal | no |
| The inbound key other tools use | `filament print-key` (masked; whole only with `--reveal` at the person's terminal) | yes, once the data folder exists (see below) |
`where`, `doctor` and `print-key` read the data folder themselves, not the running Filament: where it has no
`config.json` they make one with a new inbound key, and `secret.key`. A `--data-dir` or `FILAMENT_DATA_DIR` that names
no folder yet is a new Filament's: run them there only when the person wants one.
Your shell runs only these without asking, and only with `--json` or `--help` as flags: `status`, `models`, `chats`,
`agents [list]`, `keys [list]`, `keys show <id>`, `routes [list]`, `routes show <model>`, `memory [show]`, `settings
get <path>`, `help`, `--version`. Every other command, and
any other flag (`--machine`, `--data-dir`), asks the person first, and should. Nothing these print holds a key: a key
shows as `set`, its masked part only at the person's own terminal, and a header's value never.
Another machine's Filament: `--machine <name>` after `filament connect` (skill **filament-machines**). A server's
`service` and `update`: skill **filament-servers**.
## Settings by path
`filament settings get|set <path> <value>` reaches the sections `server`, `agentLoop`, `observability`, `alerts`,
`memory`, `ui`, `telemetry` and `experimental`, the request rules (`rules.resilience.failover`, `rules.cache.ttl`,
`rules.effort.default`…, as the console's Rules page sets them; a provider's or a route's own overrides stay the
console's), and `sessions.resumeAfterRestart`, `sessions.idleWakeMinutes`, `sessions.commitTrailer`,
`codingAgents.autoUpdate`. A value is true, false, a number, JSON or words. A credential is never set here (nor
`rules.headers.set`, the headers every request is sent with), and a host or port change takes effect at the next
restart.
- **New chats' permission mode** is Settings › Permissions › **New chats start in** (Read-only, Ask before changes,
Edit automatically — the default —, Full access); it writes your defaults' `loop.permissions`, which
`settings set` does not reach.
- Every Settings row and the path behind it: skill **filament-settings**. New chats' pages have *Applies to*: all
chats, a Space or a project. Saved agents and teams, skills, connectors and the accounts' plans are in the
**Library**, not Settings.
- Experimental's switches, telemetry and memory on or off are the person's choices: change them only when asked.
## Coding agents
| Agent | Install | Its own sign-in | Model names |
| --- | --- | --- | --- |
| Claude Code | `npm i -g @agentclientprotocol/claude-agent-acp` (needs Claude Code) | `claude auth login` | `claude-code/<model>` (`sonnet`, `opus`, `opus[1m]`, `haiku`) |
| Codex | `npm i -g @openai/codex` | `codex login` | `codex/<model>[-<effort>]` |
| Cursor | its installer from cursor.com | `agent login` | `cursor/<id>` |
| Grok Build | `irm https://x.ai/cli/install.ps1 \| iex` (PowerShell), or `curl -fsSL https://x.ai/cli/install.sh \| bash` | `grok login`, or an `XAI_API_KEY` | `grok-build/<model>` |
| Qoder CLI | `npm i -g @qoder-ai/qodercli` | `qodercli login` | `qoder/<model>` |
| Antigravity | **Install** on its card (Filament downloads it), or `filament agents install antigravity-acp` | the card's sign-in | `antigravity/<model>` |
- Claude Code, Codex and Cursor are on where their command line is found; Qoder, Qoder CN and Grok Build are added
off until **Connect**. `filament agents detect`, or **Detect installed agents** on the console's Upstreams page,
looks again. GLM Agent and GitHub Copilot CLI come from **Add a coding agent**'s registry search alone. Gemini CLI
is retired in favour of Antigravity.
- Grok Build runs as `grok agent --no-leader stdio`. Its installer, and `cursor-agent update --channel grok`, name it
`agent` too: Filament's Cursor connection still runs Cursor's own build.
- A subscription (Claude Pro/Max, ChatGPT Plus/Pro/Team) works only through its own agent: sign the agent in and use
`claude-code/…` or `codex/…`. A pay-per-token API key goes on a provider instead.
- **Accounts**: an agent can keep several (Settings › Coding agents › **Add account**); `--account <name>` picks one.
An account **Turned off** is the person's choice — its sign-in is kept, no chat runs on it —, never a sign-in
missing: leave it off, and sign in none they did not ask for.
- **Library › Accounts & limits**: every account's plan at once — each window's use, an even pace's mark, its reset
— and the chats spending it, each marked lead, thread or agent. One read over ten minutes ago is checked as the
page opens; **Check all** and a card's ↻ are the person's press. Settings › Coding agents keeps each account's
meters and links there.
- Filament gives each agent its own tools (task graph, memory, the agent tool, Space…) over MCP. Where the chat has
Filament's agent tool, the agent's own sub-agents are off (Claude Code, Codex, Cursor's SDK, Qoder, Copilot CLI) or
refused at the call (Grok Build); Cursor's CLI and Antigravity are only asked in words.
- Each chat is one agent session, kept across restarts; `/sessions` and `/resume <id or words>` find one again.
- Effort: Claude Code's effort option, Codex's `-<effort>` suffix (`codex/<model>-high`), Cursor's words in the model
name (`-xhigh`, `-fast`). A million-token window: the `[1m]` variant (`claude-code/opus[1m]`).
### Settings › Coding agents, step by step
1. **Add a coding agent** lists the ones Filament knows, then ACP's registry's by name (a search field): each with
**Connect**, **Install…**, or the page to get its installer.
2. A connected agent's card: what it does in a chat (a chip per capability), its models (**Refresh**; each with
**Agents at once**), and its accounts. An account's row: who it runs as, a meter per plan window and when it was
heard, **Sign in**, **Sign out**, **Use a reset credit** where its plan is spent and it holds one, **Check now**, and
in its menu **Sign in again**, **Rename**, **Remove**, **Turn off** (the Default keeps its name and stays).
3. **Add account** names one and signs it in at once. A sign-in by key offers **Use <provider>'s key** where Filament
keeps one for that provider, sent without being shown (`--from <provider id>` at a terminal).
4. The card's menu says its version and updates it, turns the agent off (accounts kept; **Turn on** brings it back),
links its docs, and removes one Filament installed.
5. **Keep coding agents up to date** (`codingAgents.autoUpdate`, on): Filament puts new releases of Claude Code's
adapter, Codex and Antigravity in its own folder, checks each offline, and moves the agent once nobody has used it
for an hour; the card says how it goes, with **Put back**, and a version that fails to start twice goes back by
itself. **Update** does it at once, switch or not; `FILAMENT_AGENT_UPDATES=0` keeps the looks off.
- **Antigravity** (`antigravity/<model>`): **Install** on its card (Google's agy CLI, checked by SHA-512);
**Update** then **Refresh** for a new model. Sign in with Google, Gemini Enterprise, a Gemini API
key or Agent Platform; an added account signs in in a terminal (`agy acp --login`). Its plan quota shows per model
group (Claude and GPT share a weekly window, Gemini has its own), read again with **Check now**. Modes: Default,
Accept edits, Plan, Auto where the account offers it. A copy that changed under Filament (agy run by hand updates
itself) is said on its card, with **Update** or **Put back**.
- **Cursor through its SDK** (`cursor-sdk/<model>`): Settings › Experimental › **Cursor through its SDK**
(`experimental.cursorSdk`), `npm install -g @cursor/sdk` (or the card's Install), the console's Settings › Templates
› **Cursor through the official SDK**, a Cursor API key, **Test**. `cursor/…` needs none of this.
- **The model new chats start on** is Settings › General › **New chats start on**, kept for the data folder (every
device and `filament chat` start on it), or `filament set model.name <model> --defaults`; one chat's model is its
composer's chip.
### Why an agent's turn failed
Its request's pill in the console's Traffic names the kind:
| Kind | What happened | What to do |
| --- | --- | --- |
| `auth` | Not signed in, or the account cannot be used now | `filament agents sign-in <id>`, or another account |
| `limit` | A rate limit, an overloaded provider, a plan's window spent | Wait, **Use a reset credit**, or another account or model |
| `refusal` | The request as sent was refused (a model it does not have) | Another model; read its words |
| `overflow` | The chat no longer fits its context, or the answer ran past its output limit | Compact (`/compact`) |
| `timeout` | Its provider did not answer it in time | Send again |
| `transport` | Its process died, its pipe broke, or its provider failed | Send again; `filament doctor --agent <id>` |
### An agent's own settings (`acp.*`)
Each coding agent is an upstream whose `acp` block the console's Upstreams page edits; it matters most where another
app uses a coding agent as its model:
- `acp.permissions`: how its permission prompts are answered: `allow-all` (the default), `allow-once`, `read-only`,
`reject`, or `ask` (its own choices, put to the person).
- `acp.clientBridge`: `prompts` (the default), `full`, `native` (Claude Code through Filament's toolset), `off`.
- `acp.cwdDefault`, `acp.cwdAllowlist`, `acp.cwdFromUserMessages`: where the agent works when the client names no folder.
- `acp.sessionIdleMinutes` (240): when an idle session is let go; `acp.housekeeping` and `acp.housekeepingModel`:
title requests answered by Filament; `acp.thoughts`, `acp.toolActivity`: how its thinking and tool calls show.
## The desktop app
- It runs Filament as its child and shows the harness in a window; closing the window leaves Filament in the tray.
**Quit** asks while a turn runs; **Restart** is refused while one runs; a Filament that ended by itself is started
again within seconds.
- Where a Filament of the same data folder already runs, the app attaches to it: Restart is greyed and Quit leaves
it running.
- Tray menu: Show the card, Open Filament, **Open in browser** (paired), Open the dashboard, a row per kept machine,
Restart Filament, Update / Restart to update, Start at logon, Notifications, Check for updates, Quit.
- Updates: the app looks a minute after start and every 6 hours; nothing downloads before **Update**; Settings ›
About › Updates › **Check now**. It updates itself: `filament update` is for servers.
## Where things live
- Data folder: Windows `%APPDATA%\Filament`; a Mac and Linux `~/.config/filament` (or `$XDG_CONFIG_HOME/filament`); a
git checkout uses `Filament-dev` on port 20301. `--data-dir` or `FILAMENT_DATA_DIR` names another. One Filament per
data folder (a second start: exit 6).
- In it: `config.json` (secrets in it encrypted, `enc:v1:`), `secret.key` (never shared; moved with config.json),
`requests.jsonl` (the request log), `owner.key` and `listening.json` while it runs, `devices.json`, `remotes.json`,
`desktop\server.log` (what the app's Filament printed), `agents/installed/<id>/<version>` (agents Filament
installed), `agents/updates.json` (what its updates of them did).
- Filament listens on `http://127.0.0.1:20300`. Node 22.13 or newer runs it from a checkout; the app carries its own.
## Common cases
- **No model answers** (`status` says none can): the person needs a key (`filament keys add anthropic`, `openai`,
`openrouter`…) or a coding agent they already use (`filament agents`, then connect and sign in).
- **A key was added and chats fail**: `filament keys test <id>` asks the provider; its words say why (a 401 is a
wrong key; a 429 a plan's limit). "This account or its key has no balance or plan left": recharge it, or sign in
with a key a plan covers.
- **A coding agent says not signed in**: `filament agents sign-in <id>`; `filament agents check <id>` reads it again
after a sign-in in another terminal. Codex "not logged in": `codex login`, or the sign-in above.
- **Memory learns with nothing**: `filament memory` says why; `filament memory model <name>` sets the model it learns
with. Not set (`auto`), it takes each chat's compaction model, else the chat's own.
- **Exit 3, or "did not take the owner key"**: the command found another data folder; use the line Filament gave
you, with its `--data-dir` if it has one.
- **A tool gets 401**: it sends a wrong or old inbound key (`filament print-key`; the four keys before the newest
still work). **421 "does not name this machine"**: `filament open`, or add the host to `server.allowedHosts`.
**403 "owner key"** to a script: it must send the owner key; the `filament` command line does.
- **A coding agent works in the home folder**: no project folder reached it; start the chat in a folder.
- **It will not start**: "secret.key … not valid" — restore it from a backup; "config.json is not valid JSON" — fix
the `config.json.broken-<time>` copy, or remove config.json.
- **Safari cannot open the paired link**: use Chrome, Firefox, Edge or the app.
`filament chat` ends with exit 4 where the agent it drives asks the person something with no terminal: the question
waits in the harness (`filament open`), not here.