Skip to content

Claude Code. Any Model. The most powerful AI coding agent now speaks every language.

docs: add the Muse Code usage page and the meta@ shortcut rows

Jack Rudenko41464d6df37b
diff --git a/README.md b/README.md
index f4bd0e03..88b36831 100644
--- a/README.md
+++ b/README.md
@@ -40,6 +40,7 @@
| **Alibaba Coding Plan** | `claudish --model [email protected]` |
| **Alibaba Token Plan** | `claudish --model [email protected]` |
| **Alibaba PAYG** | `claudish --model [email protected]` |
+| **Muse Code** (Meta) | `claudish --model [email protected]` |
**100% Offline Option — Your code never leaves your machine:**
```bash
@@ -161,6 +162,7 @@ claudish login codex # ChatGPT Plus/Pro (OpenAI's own PKCE flow)
claudish login antigravity # Gemini via your Antigravity plan
claudish login grok # SuperGrok / X Premium+
claudish login kimi # Kimi
+claudish login muse # Muse Code (Meta), or reuse the Muse Code CLI's login
# Then just name the model
claudish --model [email protected] "implement user authentication"
@@ -362,6 +364,7 @@ Claudish automatically loads `.env` from the current directory at startup. For t
| `QWEN_CODING_PLAN_API_KEY` | Alibaba Coding Plan (`qcode@`) | _(separate key and host)_ |
| `QWEN_TOKEN_PLAN_API_KEY` | Alibaba Token Plan (`qtoken@`) | _(separate key and host)_ |
| `DASHSCOPE_API_KEY` | Alibaba PAYG (`qpay@`) | _(separate key and host)_ |
+| `META_API_KEY` | Meta Model API, metered (`meta@`) | _(never signs the `muse@` subscription)_ |
| `OLLAMA_API_KEY` | OllamaCloud (`oc@`) | |
| `OPENCODE_API_KEY` | OpenCode Zen (`zen@`) | |
| `OPENCODE_GO_API_KEY` | OpenCode Zen Go plan (`zgo@`) | _(separate from the metered Zen credential)_ |
@@ -452,6 +455,8 @@ Every one of these also accepts `CUSTOM_<NAME>_KEY` as an alias, and any of them
| `QWEN_CODING_PLAN_BASE_URL` | Alibaba Coding Plan | `https://coding-intl.dashscope.aliyuncs.com` |
| `QWEN_TOKEN_PLAN_BASE_URL` | Alibaba Token Plan | `https://token-plan.ap-southeast-1.maas.aliyuncs.com` |
| `DASHSCOPE_BASE_URL` | Alibaba PAYG | `https://dashscope-intl.aliyuncs.com` |
+| `META_BASE_URL` | Meta Model API (`meta@`) | `https://api.meta.ai` |
+| `MUSE_CODE_BASE_URL` | Muse Code subscription (`muse@`) | `https://api.meta.ai` |
| `OLLAMACLOUD_BASE_URL` | OllamaCloud | `https://ollama.com` |
| `OPENCODE_BASE_URL` | OpenCode Zen | `https://opencode.ai/zen` |
| `LITELLM_BASE_URL` | LiteLLM proxy server | _(required with LITELLM_API_KEY)_ |
@@ -640,6 +645,8 @@ claudish --model [email protected]:3 "code review" # 3 concurrent requests
| `qcode@` | Alibaba Coding Plan | `QWEN_CODING_PLAN_API_KEY` | `[email protected]` |
| `qtoken@` | Alibaba Token Plan | `QWEN_TOKEN_PLAN_API_KEY` | `[email protected]` |
| `qpay@` | Alibaba PAYG | `DASHSCOPE_API_KEY` | `[email protected]` |
+| `meta@` | Meta Model API (metered) | `META_API_KEY` | `[email protected]` |
+| `muse@` | Muse Code subscription (Meta) | _(`claudish login muse`, or the Muse Code CLI's Keychain login)_ | `[email protected]` |
| `llama@`, `lc@` | OllamaCloud | `OLLAMA_API_KEY` | `[email protected]` |
| `oc@` | OllamaCloud | `OLLAMA_API_KEY` | `[email protected]` |
| `zen@` | OpenCode Zen | `OPENCODE_API_KEY` | `zen@gpt-5-nano` |
diff --git a/docs/index.md b/docs/index.md
index ceefbe38..93b35e93 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -104,6 +104,7 @@ Then just ask Claude:
- **[Single-Shot Mode](usage/single-shot-mode.md)** - Run one task, get result, exit. Perfect for scripts
- **[MCP Server Mode](usage/mcp-server.md)** - Use external models as tools inside Claude Code
- **[Monitor Mode](usage/monitor-mode.md)** - Debug by watching real Anthropic API traffic
+- **[Muse Code](usage/muse-code.md)** - Meta's Muse models on your Muse Code subscription (`muse@`), or metered with `META_API_KEY` (`meta@`)
### Models
- **[Choosing Models](models/choosing-models.md)** - Which model for which task? I'll share my picks
diff --git a/docs/settings-reference.md b/docs/settings-reference.md
index ae27e0ce..49aacb52 100644
--- a/docs/settings-reference.md
+++ b/docs/settings-reference.md
@@ -206,6 +206,7 @@ Claudish automatically loads `.env` from the current working directory at startu
| `SAKANA_CODING_API_KEY` | Sakana Fugu Subscription (`sc@`) | `SAKANA_API_KEY` | https://console.sakana.ai/get-started |
| `QWEN_TOKEN_PLAN_API_KEY` | Alibaba Token Plan (`qtoken@`) — Model Studio subscription, metered in Credits | _(none by design — see the note below)_ | https://docs.qwencloud.com/token-plan/overview |
| `QWEN_CODING_PLAN_API_KEY` | Alibaba Coding Plan (`qcode@`) — Model Studio subscription, metered in requests | _(none by design — see the note below)_ | https://www.alibabacloud.com/help/en/model-studio/coding-plan |
+| `META_API_KEY` | Meta Model API, metered (`meta@`). Never signs the `muse@` subscription, which uses `claudish login muse` or the Muse Code CLI's Keychain login | | https://dev.meta.ai |
| `DASHSCOPE_API_KEY` | Alibaba PAYG (`qpay@`) — Model Studio pay-as-you-go, billed per token | _(none by design — see the note below)_ | https://www.alibabacloud.com/help/en/model-studio/get-api-key |
| `OLLAMA_API_KEY` | OllamaCloud hosted API (`oc@`, `llama@`, `lc@`) | | https://ollama.com/account |
| `OPENCODE_API_KEY` | OpenCode Zen (`zen@`) — **required** | | https://opencode.ai/ |
@@ -267,6 +268,8 @@ If none of them answers, the error says so and names both remedies (`VERTEX_PROJ
| `QWEN_TOKEN_PLAN_BASE_URL` | Alibaba Token Plan endpoint | `https://token-plan.ap-southeast-1.maas.aliyuncs.com` |
| `QWEN_CODING_PLAN_BASE_URL` | Alibaba Coding Plan endpoint | `https://coding-intl.dashscope.aliyuncs.com` |
| `DASHSCOPE_BASE_URL` | Alibaba PAYG endpoint; repoint here for a mainland-China account | `https://dashscope-intl.aliyuncs.com` |
+| `META_BASE_URL` | Meta Model API (`meta@`) | `https://api.meta.ai` |
+| `MUSE_CODE_BASE_URL` | Muse Code subscription (`muse@`): the `/v1/responses`, `/muse-code/key` and `/muse-code/models` host | `https://api.meta.ai` |
| `OLLAMACLOUD_BASE_URL` | OllamaCloud hosted API | `https://ollama.com` |
| `OPENCODE_BASE_URL` | OpenCode Zen API (base; `/v1/chat/completions` appended) | `https://opencode.ai/zen` |
| `LITELLM_BASE_URL` | LiteLLM proxy server URL (**required** to enable LiteLLM routing) | none |
@@ -374,6 +377,9 @@ Same schema as `~/.claudish/config.json`. Placed in the project root directory (
| `all-models.json` | Cached full model catalog from OpenRouter | Every 2 days, or on `--models-refresh` |
| `litellm-models-{hash}.json` | Cached LiteLLM model list per server (hash = SHA-256 of `LITELLM_BASE_URL`) | On each LiteLLM model fetch |
| `kimi-oauth.json` | Kimi OAuth credentials (access + refresh tokens) | On `claudish --kimi-login` |
+| `meta-muse-oauth.json` | claudish's own Muse Code login (0600) | On `claudish login muse`; deleted by `claudish logout muse` |
+| `meta-muse-borrowed.json` | claudish's copy of the Muse Code CLI's login, so `team` slots and MCP sessions can sign without a Keychain dialog (0600) | After an interactive launch reads the Keychain and Meta confirms the subscription; deleted by `claudish logout muse` |
+| `muse-keychain-read.lock` | Held while one process waits on the Muse Keychain dialog, so other processes wait instead of opening a second one | Removed when the read ends |
| `logs/` | Debug log files (created when `--debug-claudish` is used) | Per session |
### 4.4 Config File Override (`--config`)
@@ -462,7 +468,9 @@ rate. The markers need a catalog connection (or a custom endpoint); they are ref
| `qtoken` | `qwen-token-plan` | Alibaba Token Plan — Model Studio subscription, Credits (`QWEN_TOKEN_PLAN_API_KEY`) |
| `qcode` | `qwen-coding` | Alibaba Coding Plan — Model Studio subscription, requests (`QWEN_CODING_PLAN_API_KEY`) |
| `qpay` | `qwen-payg` | Alibaba PAYG — Model Studio pay-as-you-go, per token (`DASHSCOPE_API_KEY`) |
-| `oc`, `llama`, `lc`, `meta` | `ollamacloud` | OllamaCloud hosted API (`OLLAMA_API_KEY`) |
+| `oc`, `llama`, `lc` | `ollamacloud` | OllamaCloud hosted API (`OLLAMA_API_KEY`). `meta` is no longer an OllamaCloud shortcut |
+| `meta` | `meta` | Meta Model API, metered (`META_API_KEY`) |
+| `muse` | `meta-muse-code` | Muse Code subscription (`claudish login muse`, or the Muse Code CLI's Keychain login); see [Muse Code](usage/muse-code.md) |
| `zen` | `opencode-zen` | OpenCode Zen (`OPENCODE_API_KEY` required) |
| `zengo`, `zgo` | `opencode-zen-go` | OpenCode Zen Go subscription plan (`OPENCODE_GO_API_KEY` required) |
| `v`, `vertex` | `vertex` | Vertex AI — Application Default Credentials (`VERTEX_PROJECT` optional) |
diff --git a/docs/usage/muse-code.md b/docs/usage/muse-code.md
new file mode 100644
index 00000000..3e885a1e
--- /dev/null
+++ b/docs/usage/muse-code.md
@@ -0,0 +1,223 @@
+# Muse Code
+
+**Run Claude Code on Meta's Muse models with your Muse Code subscription.**
+
+Added in the first claudish release after 10.6.1. Last updated 2026-10-16.
+
+`muse@` signs requests with your Muse Code login and bills them to the subscription. `meta@` is
+the separate, metered Meta Model API, signed by `META_API_KEY`.
+
+---
+
+## First run
+
+```bash
+claudish login muse
+claudish --model [email protected] "explain what src/index.ts does"
+```
+
+`claudish login muse` prints a code and opens Meta's sign-in page:
+
+```
+Sign in to Meta for Muse Code (a Muse Code subscription is required).
+
+ Code: KQWD-PLRT
+ URL: https://auth.meta.com/oauth/device/?code=KQWD-PLRT
+
+Approve the request in your browser; waiting…
+
+Signed in to Muse Code (Muse Code Power Usage). Try it with: claudish --model [email protected] "hello"
+```
+
+The tier in parentheses is the one Meta reports for your account.
+
+### Prerequisites: a Muse Code subscription
+
+- [ ] An active Muse Code subscription on your Meta account
+- [ ] a claudish release newer than 10.6.1 (`claudish --version`)
+- [ ] For `meta@` only: a Meta Model API key from https://dev.meta.ai
+
+You do not need the Muse Code CLI. If you already use it, claudish can borrow its login instead.
+
+---
+
+## Two ways to log in
+
+| | `claudish login muse` | the Muse Code CLI's `muse login` |
+|---|---|---|
+| Where the login lives | `~/.claudish/meta-muse-oauth.json` | the macOS Keychain item `ai.meta.dev.credentials` |
+| Works on | any OS | macOS only, for claudish's purposes |
+| Dialogs | none after the browser approval | one macOS Keychain access dialog, the first time |
+| Works in `team` slots and MCP sessions | yes | after one interactive approval (below) |
+
+claudish tries them in this order: its own login, then its copy of the Muse CLI's login, then the
+Keychain. claudish never writes or deletes the Muse CLI's Keychain item.
+
+### Borrowing the Muse CLI's login
+
+Run one interactive launch in a terminal:
+
+```bash
+muse login # once, in the Muse Code CLI
+claudish --model [email protected] "hello"
+```
+
+Before Claude Code starts, macOS asks whether to allow access to the `ai.meta.dev.credentials`
+Keychain item. Click **Always Allow**. claudish then confirms the subscription with Meta and saves a
+copy of the login to `~/.claudish/meta-muse-borrowed.json` (mode 0600).
+
+### Why team slots and MCP sessions need that copy
+
+A `team` slot, a `create_session` pane, the MCP server, `--probe`, `claudish serve` and any piped
+or CI run never open a Keychain dialog. Nobody watches their screen, so an unanswered dialog would
+block the request. These processes read only claudish's two files, and without either one they
+stop with:
+
+```
+muse@ in a team slot / MCP session needs a claudish login: run `claudish login muse`, or one
+interactive `claudish --model muse@<model>` and allow Keychain access.
+```
+
+Either fix works, and from then on every slot signs on its own with no dialog.
+
+---
+
+## Choosing a model
+
+Today you name the model with its exact wire id:
+
+```bash
+claudish --model [email protected] "refactor the auth module"
+claudish --model [email protected] "review this diff"
+claudish --model [email protected] "write tests for utils.ts"
+```
+
+Run `claudish` with no `--model` to open the picker. Its Muse Code row lists the models your account
+serves, read live from Meta (`/muse-code/models`).
+
+**Bare names do not reach `muse@` yet.** The cloud models catalog has no route for the Muse Code
+subscription. Until it does, a bare name such as `muse-spark-1.3` goes to `meta@` if
+`META_API_KEY` is set, then OpenCode Zen, then OpenRouter. Check what a name resolves to:
+
+```bash
+claudish --probe muse-spark-1.3
+```
+
+A bare name leads with `muse@` once the catalog publishes that route.
+
+### Contributor models
+
+Each Muse chat model also has a `-contributor` twin (`muse-spark-1.3-contributor`). Meta's description for
+those ids: "Your content, including inter-session messages, may be used for product improvement."
+claudish never picks a contributor id for you, on any provider. It sends one only when you type it
+exactly:
+
+```bash
+claudish --model [email protected] "hello"
+```
+
+### Reasoning effort
+
+claudish sends the effort level Claude Code asks for. It encodes that level the way the metered
+Meta API's catalog entry for the same model does.
+
+The Wonder Full model is the exception. The metered API has no entry for `muse-wonder-full-1.0`,
+so claudish cannot encode its effort, and the request carries the Responses adapter's default.
+Contributor ids take only the output limit from their entry, with no effort encoding.
+
+---
+
+## Billing: `muse@` and `meta@`
+
+### Metered `meta@`
+
+```bash
+export META_API_KEY='your-meta-model-api-key'
+claudish --model [email protected] "summarise CHANGELOG.md"
+```
+
+Why two providers? `META_API_KEY` never signs `muse@`, and your Muse Code login never signs
+`meta@`, because each credential is billed differently.
+
+`meta@` used to be an OllamaCloud shortcut. It now means Meta. Use `oc@`, `llama@` or `lc@` for
+OllamaCloud.
+
+### Who bills what
+
+| Provider | Billed | claudish shows |
+|---|---|---|
+| `muse@` | your Muse Code subscription, flat rate | `SUB`, $0 per request |
+| `meta@` | per token, to your Meta Model API account | the per-token price |
+
+Before it signs any `muse@` request, claudish asks Meta's key service whether your subscription is
+active and needs no payment method. With no confirmation it does not sign. It asks again every 30
+minutes, so a lapsed subscription stops within 30 minutes even in a long session.
+
+If your Muse Code login expires mid-session, the request stops with a login message. claudish does
+not move the request to a metered provider.
+
+## Logging out
+
+```bash
+claudish logout muse
+```
+
+This deletes `~/.claudish/meta-muse-oauth.json` and `~/.claudish/meta-muse-borrowed.json`. It
+leaves the Muse Code CLI's own login alone, and it does not revoke the token at Meta. To end the Muse
+CLI's session too, use the Muse Code CLI's own logout.
+
+---
+
+## Troubleshooting
+
+### "muse@ needs a Muse Code login"
+
+**Cause**: no claudish login and no borrowed copy, and no Muse CLI login in the Keychain.
+
+**Fix**: run `claudish login muse`.
+
+### "Your Muse Code login has expired"
+
+**Cause**: Meta's key service rejected the login (HTTP 401 or 403). Logging out of the Muse Code CLI
+revokes the token claudish copied.
+
+**Fix**: run `claudish login muse`, or `muse login` followed by one interactive `claudish` launch.
+
+### "Your Meta account has no active Muse Code subscription (or needs a payment method)"
+
+**Cause**: the login works, but Meta reports no active subscription. Logging in again does not
+change this.
+
+**Fix**: subscribe or add a payment method at the URL in the message
+(https://accountscenter.meta.com/muse_code/?ep=no_payg when Meta names no other).
+
+### "could not read the Muse Code login from the macOS Keychain"
+
+**Cause**: the access dialog was denied, or got no answer within 120 seconds.
+
+**Fix**: run the launch again and click **Always Allow**, or use `claudish login muse`, which needs no
+Keychain access. claudish never kills the waiting Keychain read. A late answer still counts, and only
+one dialog is open per machine at a time.
+
+### "Muse Code key service unavailable (HTTP 503)"
+
+**Cause**: Meta's key service is down or rate-limited (HTTP 429 or 5xx).
+
+**Fix**: retry. Claude Code's own retry re-sends to `muse@`; the request does not move to another
+provider.
+
+### "muse@ in a team slot / MCP session needs a claudish login"
+
+**Cause**: you logged in with `muse login` only, and no interactive `claudish` launch has copied
+that login yet. The slot may not read the Keychain itself. See
+[Why team slots and MCP sessions need that copy](#why-team-slots-and-mcp-sessions-need-that-copy).
+
+**Fix**: run `claudish login muse` once, or one interactive `claudish --model [email protected]`.
+
+---
+
+## Next steps
+
+- [MCP Server Mode](mcp-server.md): use `muse@` models as tools inside Claude Code
+- [Settings reference](../settings-reference.md): every provider shortcut and environment variable
+- [Choosing models](../models/choosing-models.md)