Tutorials
Six runbooks that take you from install to a verified result. Each one is written for a human and an agent: exact commands, expected output, and the failure that means stop.
For agents: run the steps in order, stop on the first non-zero exit, and report the command, exit code, and full output. Do not claim success without the verification line at the end of the runbook.
1. Lower your Claude Code bill in 10 minutes
You need: a Savants account and a Claude Code install. You get: Claude Code routed through Savants, with a visible per-request ledger.
curl -fsSL https://savants.dev/install.sh | sh
savants connect
savants router enable --yes
savants router status Expected: router status shows the active backend, health, selected model, and whether Claude Code is pointed at the router. Open Claude Code and send one prompt; the statusline should show the model and a token rate.
Stop if: router enable says no router.json and not connected to savants.cloud. Run savants connect first; do not hand-edit router.json.
2. Verify weekly-limit failover
You need: tutorial 1 complete, with Claude Code routed. You get: proof that a limit switches the same session without a re-prompt.
- Use Claude Code normally until the weekly limit is reached, or use your account’s documented limit-test path.
- Keep the same session open. Do not start a new conversation.
- Send one more request.
Expected: the session continues; the statusline shows the rescue and the serving backend/model. savants router status shows the new active backend.
Stop if: the session errors, restarts, or re-prompts. Report the statusline line and savants router status output; that is a router bug, not a user error.
3. Connect any MCP client
You need: a Savants API key from savants.cloud/dashboard/keys. You get: Savants tools in Claude Code, Claude Desktop, Cursor, Codex, Gemini CLI, OpenCode, or any Streamable HTTP MCP client.
Remote, no local binary:
claude mcp add --scope user --transport http savants \
https://api.savants.cloud/mcp \
--header "Authorization: Bearer sk_live_..." Any client JSON:
{
"mcpServers": {
"savants": {
"type": "http",
"url": "https://api.savants.cloud/mcp",
"headers": { "Authorization": "Bearer sk_live_..." }
}
}
} Local, no API key:
savants mcp install
# or point any stdio client at:
savants serve Verify: claude mcp list shows Connected, then ask “call the Savants graph_stats tool with my repo.” A tool result proves the connection; the server name alone does not.
Stop if: you see 401 (bad key), no_project (repo not indexed), or a duplicate Savants server (remove the local or remote one).
4. Ask your first code-graph question
You need: an MCP connection from tutorial 3. You get: a local index and an answer about your own repository.
cd /path/to/your/repo
savants up
savants reindex Ask your agent, in the same repo:
Who calls <function>? What breaks if I change it?
Find code that handles <behavior>.
Is the graph current? Expected: the answer names real files and lines, and the tool response ends with a [savants] latency/token line.
Stop if: every answer is “not found.” The repo name or index is wrong; run savants reindex and check graph_freshness.
5. Add Guard to an agent
You need: Savants installed. You get: a destructive action stopped before execution and a recorded reason.
curl -fsSL https://savants.dev/install.sh | sh
savants guard preset standard+secrets
savants guard list
savants guard status In an AI coding agent, ask it to run a harmless but destructive-looking command in a temporary directory:
rm -rf /tmp/savants-guard-test Expected: the command is blocked, the agent sees the rule, and savants guard why shows the last block.
Stop if: the command runs. Check that the agent’s hooks point at the current savants binary and that Guard is active.
6. Verify a signed release
You need: curl, sha256sum, and gpg. You get: proof that the binary came from Savants and was not modified.
curl -fsSLO https://releases.savants.dev/latest/SHA256SUMS
curl -fsSLO https://releases.savants.dev/latest/SHA256SUMS.asc
gpg --verify SHA256SUMS.asc SHA256SUMS
curl -fsSLO https://releases.savants.dev/latest/savants-x86_64-unknown-linux-musl.tar.gz
sha256sum -c SHA256SUMS --ignore-missing Expected: Good signature from "Savants Releases <[email protected]>" and savants-...tar.gz: OK.
Stop if: the signature is missing, the fingerprint differs, or the checksum fails. Do not run the binary; report the release tag and URLs.