Integrations
Use FullsendAI with Claude Code
Set it up#
- Create a key on API keys; a monthly spend cap on it is a good idea for an agent.
- Set the variables, in your shell or once for good in Claude Code's settings file:
{ "env": { "ANTHROPIC_BASE_URL": "https://fullsendai.com", "ANTHROPIC_AUTH_TOKEN": "fs_live_...", "ANTHROPIC_MODEL": "deepseek-v4.1-flash", "ANTHROPIC_DEFAULT_OPUS_MODEL": "deepseek-v4.1-flash", "ANTHROPIC_DEFAULT_SONNET_MODEL": "deepseek-v4.1-flash", "ANTHROPIC_DEFAULT_HAIKU_MODEL": "glm-5.3-flash" }}| Variable | What it does |
|---|---|
ANTHROPIC_BASE_URL | FullsendAI's address, with no /v1: Claude Code adds /v1/messages itself. |
ANTHROPIC_AUTH_TOKEN | Your key, sent as Authorization: Bearer. ANTHROPIC_API_KEY works too. |
ANTHROPIC_MODEL | The model for the main conversation. |
ANTHROPIC_DEFAULT_OPUS_MODEL, ANTHROPIC_DEFAULT_SONNET_MODEL | What the opus and sonnet aliases in /model resolve to; set both so no alias asks for a Claude model. |
ANTHROPIC_DEFAULT_HAIKU_MODEL | The small model for background work (titles, summaries). Older releases call it ANTHROPIC_SMALL_FAST_MODEL. |
Start claude and send a message; the call appears in Logs within a second, with the calling app and its cost.
Recommended models#
| Model ID | Use it for | Price / 1M in / out |
|---|---|---|
nef-4.0 | Security research: code review, exploit analysis, CTFs and pentest tooling. | $0.60 / $2.40 |
Any live model works; see Models for context windows and grades. For long sessions, a large context window matters more than anything else.
Switching models#
- In a session:
/model glm-5.3-flash(any FullsendAI model ID). - For one run:
claude --model glm-5.3-flash. - For good: change
ANTHROPIC_MODELin the settings file.
Per project#
Put the same env block in a repository's .claude/settings.local.json to use FullsendAI (or a different key or model) only there. Keep keys out of the shared .claude/settings.json, which is usually committed; use $FULLSEND_API_KEY in your shell instead.
Claude Code's own prompt#
On every request, Claude Code sends its own agent instructions beside your message, a few thousand tokens each time. When you connect with npx fullsendai connect, they are left out of its requests, which makes every call lighter. What Claude Code needs to work still goes: your project's folder, platform and shell, CLAUDE.md, its subagents, skills and MCP servers, and every tool definition. Its built-in subagents run without Claude Code's instructions too; your own agents in .claude/agents keep their definitions, and side calls, such as naming a session, keep theirs.
| How you connected | What happens | How to change it |
|---|---|---|
npx fullsendai connect | Its own instructions are left out on the key made for it, until that key is revoked on disconnect. | Connect again with --keep-claude-prompt to send them as usual. |
| Environment variables, by hand | Its own instructions are sent as usual. | Turn it on for that key with PATCH /v1/key: { "strip_claude_prompt": true }, or false to send them again. |
It's a setting on the key, not in Claude Code's files, so a Claude Code update can't undo it, and it never reaches your other keys. Anything you add with --append-system-prompt is part of the instructions left out; use --keep-claude-prompt if you rely on it. Every other client's instructions pass through untouched.
What works differently#
- Reading and editing files, running commands, sub-agents, MCP servers, hooks and images all work: they run on your machine and reach the model as ordinary tool calls.
- Thinking: Claude Code's thinking setting has no effect, and no thinking is shown. Reasoning models still reason at their default effort.
- Web search uses one of Anthropic's server tools, which FullsendAI doesn't run.
- Prompt caching markers are passed through, and cached input is billed at the cheaper cached price. See What's different.
Troubleshooting#
| Symptom | Fix |
|---|---|
404 not_found_error | A Claude model name reached us. Set all four model variables above; check /model. |
| A 404 page or a connection error | Remove any /v1 from ANTHROPIC_BASE_URL. |
401 authentication_error | The key is wrong or revoked, or an older ANTHROPIC_API_KEY in your shell is overriding it. |
| It still uses your Claude subscription | Run /logout, then start claude again with the variables set. /status shows which credentials and base URL are in use. |
402 billing_error | Balance and plan allowance are used up. Add credit or turn on auto top-up. |
429 rate_limit_error | Claude Code retries on its own. If it's key_limit_reached, raise the key's cap. |
Stuck? Email [email protected]System statusChangelog