Get SLIMA_API_TOKEN
Lectura de 4 min
Local stdio Slima MCP needs an API token — two paths.

Path 1: CLI auth flow (recommended)
Run:
npx slima-mcp@0 auth
What happens:
- Terminal says "Opening browser…"
- Default browser opens Slima sign-in
- Sign in (or if already, see authorize page)
- Click "Authorize"
- Redirect to localhost, browser closes
- Token saved to
~/.slima/credentials.json(chmod 600)
Every slima-mcp client subsequently auto-reads this token.
Path 2: manual
If the CLI auth flow can't open a browser (server env, etc.):
- Browser to slima.ai/account/api-tokens
- "+ Create new token"
- Name (e.g. "Claude Desktop", "My Mac")
- "Create"
- Copy the displayed token (shown once!)
- Set the token in env or config:
# bash / zsh
export SLIMA_API_TOKEN="slima_..."
# or in config
echo '{"slima":{"command":"npx","args":["-y","slima-mcp@0"],"env":{"SLIMA_API_TOKEN":"slima_..."}}}'
Differences
| CLI auth | Manual | |
|---|---|---|
| Where stored | ~/.slima/credentials.json (auto) |
env var / config (you) |
| Security | chmod 600, automatic | depends how you store |
| Best for | Most people | Automation / CI / multi-account |
Can one token serve multiple clients?
Yes — same token across Claude Desktop + Cursor + Gemini works.
But one token per client is recommended — revoking one doesn't affect others.
Related
Was this helpful?