Get your key
Sign in with GitHub and pick a project repo or your profile. Its key is shown once during setup. It is a boostmyagents virtual key, not an API key issued by Anthropic, and it only works against the boostmyagents gateway.
Install the bma-cli launcher
Set up your recipient’s key once, then choose Claude Code or Codex. Both use that recipient’s balance. Each key runs one request at a time.
On macOS, Linux, or WSL, install bma-cli in your local bin directory. The script is short; read it before running it.
mkdir -p ~/.local/bin && curl -fsSLo ~/.local/bin/bma-cli https://boostmyagents.com/bma-cli && chmod +x ~/.local/bin/bma-cli
If bma-cli is then “command not found”, add export PATH="$HOME/.local/bin:$PATH" to your shell profile (~/.zshrc or ~/.bashrc), or run ~/.local/bin/bma-cli instead.
Check the download against the published SHA-256. This prints OK when it matches:
echo "9f56f52fd26ce86f5c5c9c3c1413d0493b81d935b7fb0bc77b1819234454a35f $HOME/.local/bin/bma-cli" \
| shasum -a 256 -c
Save your key
bma-cli setup
Paste your key when asked; input is hidden. Setup checks the key with the gateway, saves it on this machine, and prints Ready.
Then start the coding tool you want. Both commands use the same saved key and balance:
bma-cli claude --model claude-opus-5-5
bma-cli codex
A leading --key <name> pair chooses a saved key. bma-cli removes that pair and passes the remaining arguments to Claude Code or Codex unchanged. Run bma-cli help for other commands.
Several keys
Run bma-cli setup once for each key. In a Git checkout, bma-cli chooses the key saved for its origin repository.
Use --key <name> immediately after claude, codex, or status to choose a saved key. For editor settings, put it after editor-settings.
bma-cli claude --key octo/widgets --model claude-opus-5-5
bma-cli codex --key octo/widgets
bma-cli claude editor-settings --key octo/widgets
Run bma-cli keys to list saved keys. Run bma-cli keys remove octo/widgets to remove one.
Check your balance
bma-cli status
$ bma-cli status
Remaining: $12.40 (available, as of 2026-10-27 18:05 UTC)
Boost page: https://app.boostmyagents.com/d/octocat
Dashboard: https://app.boostmyagents.com/dashboard
available becomes empty when the balance runs out, and the figure can trail live usage by a few minutes. The balance is shared by Claude Code and Codex.
Update bma-cli
bma-cli update
This downloads the latest bma-cli and checks it against the published SHA-256. Your copy is replaced only when the check passes and the download is a newer version. Your key and settings stay as they are. bma-cli never checks for updates on its own.
Claude Code
Start Claude Code through the launcher with a model from the supported list:
bma-cli claude --model claude-opus-5-5
Any Claude Code flags after bma-cli claude are passed through unchanged, after a leading --key <name> pair is removed.
Claude Code shows a boostmyagents status line by default; BMA_NO_STATUSLINE=1 bma-cli setup keeps your own.
bma-cli does not change your Claude Code model, effort, or permission settings. Use a model from the supported list, because any other model is rejected and never swapped for a different one.
VS Code and Cursor (Claude Code extension)
- Install the Claude Code extension in VS Code or Cursor.
- Run
bma-cli setupif you have not already. - Run
claudeonce inside the project and accept the workspace trust prompt. - From the project root, run:
bma-cli claude editor-settings > .claude/settings.local.json
- Set
"claudeCode.disableLoginPrompt": truein VS Code or Cursor user settings. - Restart the editor.
A global ANTHROPIC_AUTH_TOKEN or ANTHROPIC_API_KEY in ~/.claude/settings.json overrides this project file. Keep .claude/settings.local.json out of git. Claude Code adds it to .gitignore only when Claude Code creates the file. If you create it yourself, add it to .gitignore before saving.
Optional: manual setup without bma-cli
Use this to run Claude Code in the terminal without bma-cli. First install Claude Code.
Save the key in its recipient directory. Replace <login> with your lowercased GitHub login and <Slug> with its original spelling.
d=~/.config/boostmyagents/keys/developer/<login>
(
umask 077
mkdir -p "$d"
printf '%s\n' '<KEY>' > "$d/key"
printf '%s\n' '<Slug>' > "$d/slug"
)
This command places the key in shell history.
Then add this alias to your shell profile, such as ~/.zshrc or ~/.bashrc. It reads the saved key when it runs, so your profile never holds the key, and it stops with a message if the key is not saved.
alias claude-boost='[ -s ~/.config/boostmyagents/keys/developer/<login>/key ] || { echo "Save your boostmyagents key first" >&2; false; } && env -u ANTHROPIC_API_KEY ANTHROPIC_BASE_URL=https://api.boostmyagents.com ANTHROPIC_AUTH_TOKEN="$(cat ~/.config/boostmyagents/keys/developer/<login>/key)" CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1 claude'
Open a new terminal, then run claude-boost. To choose a specific model, pass one of the supported model IDs.
claude-boost --model claude-sonnet-5-5
Codex CLI
Install Codex CLI 0.165.0, the version bma-cli is tested with. Then start it with the same saved key:
bma-cli codex
Any Codex arguments after bma-cli codex are passed through unchanged, after a leading --key <name> pair is removed. The launcher uses a separate Codex profile under ~/.config/boostmyagents/codex and does not read or change ~/.codex. Codex keeps its normal approval prompts. The profile turns off automatic retries, and Codex has no boostmyagents status line yet.
If bma-cli prints Codex support is not available for your key yet., your key keeps working with Claude Code.
The Codex CLI guide covers installation, the supported OpenAI models, folder trust, limits, and troubleshooting.
Anthropic SDK
The official SDKs read the same two environment variables as Claude Code, so no code change is needed beyond choosing a supported model.
export ANTHROPIC_BASE_URL=https://api.boostmyagents.com
export ANTHROPIC_API_KEY=your-virtual-key
from anthropic import Anthropic
client = Anthropic() # reads ANTHROPIC_BASE_URL and ANTHROPIC_API_KEY
message = client.messages.create(
model="claude-sonnet-5-5",
max_tokens=1024,
messages=[{"role": "user", "content": "Summarize this changelog."}],
)
print(message.content[0].text)
To keep the gateway out of your global environment, for example when you also use bma-cli, pass both values to the client instead:
import os
from anthropic import Anthropic
client = Anthropic(
base_url="https://api.boostmyagents.com",
api_key=os.environ["BOOSTMYAGENTS_KEY"],
)
Switch back to your plan
Your plan and boost credit are separate connections. To go back to your plan:
- Claude Code in an editor: save a copy of
.claude/settings.local.jsonas.claude/settings.bma.sample.jsonif you want to return later. If you pasted your key into the file, delete that line from the copy. Then remove the boostmyagents lines from.claude/settings.local.json, reload the editor, and start a new conversation. - Codex in an editor: put a
#in front of themodel_providerandweb_searchlines inconfig.toml, reload, and start a new thread. Leave the provider block in place. - Terminal: use plain
claudeorcodexfor your plan. Usebma-cli claude,bma-cli codex, orclaude-boostfor boost credit.
Troubleshooting
Test the connection
bma-cli users run bma-cli status. If it prints your balance, the key and gateway are working.
This test is for manual setup and SDK users. bma-cli users leave these variables unset. It sends one small request through the gateway. A JSON reply with a content field means the key and address are working.
curl "$ANTHROPIC_BASE_URL/v1/messages" \
-H "x-api-key: $ANTHROPIC_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "content-type: application/json" \
-d '{
"model": "claude-haiku-5-5",
"max_tokens": 32,
"messages": [{"role": "user", "content": "Say hello"}]
}'
Gateway errors
Gateway errors start with boostmyagents: and carry a code. Rejected requests are not charged.
My dashboard shows money left, but requests fail with below_response_floor or insufficient_balance
Before each request, the gateway sets aside the most the provider could charge for it: every input token at the highest cache rate, plus the full output it allows. The request goes through only if that amount fits in what remains. Long conversations grow the input with every turn, so near the end of a boost a single request can need more than is left, even though it would actually cost much less.
To keep going, make the request smaller. Start a new session, or use /compact or /clear in Claude Code. A lower-priced model also helps: claude-sonnet-5-5 sets aside half or less of what an Opus model does for the same input. See the supported models.
exhausted
The boost is used up. Check your balance in the dashboard, or share your boost page with supporters.
The model is not available for this key
The request named a model that is not on the supported list. Use the exact model ID from that list. Older IDs such as claude-opus-4-5 or claude-sonnet-4-5 are rejected and never swapped for another model.
This error can also appear when your client names fallback models (a fallbacks setting) that are not on the list. Server-side fallbacks are not supported, so turn that setting off.
count_request_rejected
The gateway counts every request's tokens with the provider before sending it. This error means the provider's token counter did not accept the request, so nothing was sent to the model and nothing was charged. The message says which setting was rejected and how to fix it:
- This model does not accept a thinking budget (budget_tokens). Remove the thinking budget setting or use adaptive thinking, then retry.
- This model does not allow turning thinking off. Remove the setting that disables thinking, then retry.
- The provider rejected the thinking settings for this model. Reset your client's thinking or effort settings to the default, then retry.
- This model does not support forcing a tool call (tool_choice "any" or "tool"). Use automatic tool choice, then retry.
- This model does not support prefilling the assistant reply. End the conversation with a user message, then retry.
- The provider rejected where a system message appears. Put system instructions in the top-level system prompt, then retry.
- The provider rejected a sampling setting (temperature, top_p or top_k) for this model. Remove it or use the default, then retry.
- The provider rejected the max_tokens value for this model. Lower the output token limit in your client, then retry.
- The request is longer than the model's context window. Start a new session or compact the conversation, then retry.
- The provider rejected this request shape before it was sent. Check the request against the model's supported parameters. This usually means the client used a newer request feature or beta that the gateway does not pass through yet. Try another supported model or turn off the experimental feature in your client.
The gateway reads the provider's reason only to pick one of these fixed messages. It does not store or log it. If a common client keeps hitting one of these, tell us in Discord which client and version you use.
Model capacity is temporarily paused on our side
This message means our own provider account reached its spending limit. It is not a problem with your account or balance, and you do not need to change anything. We get an alert and restore capacity as soon as we can. Please try again later.
Claude Code is too old for this model
Some models need a recent Claude Code. claude-opus-5-5 needs Claude Code 2.1.280 or newer, and claude-fable-5-1 needs 2.1.251 or newer. An older version gets a message naming its version and the minimum. Run claude update, then retry. You can check your version with claude --version.
Errors ending in _unsupported
The request used a feature the gateway does not support, such as fast mode, priority tiers, hosted web search, or server-side compaction. A fallbacks setting in your client is rejected with provider_execution_unsupported, so turn it off. See the gateway limits. If a common client sends it by default, let us know in Discord.
trial_daily_request_limit
This limit applies only to welcome credit granted at signup before the offer changed on November 23, 2026. For thirty days after that grant, the key holding it can make up to 300 accepted requests per UTC day. The count resets at 00:00 UTC. A qualifying boost ends the limit. Welcome credit earned under the current offer has no such limit. See the Terms.
ceiling_sync_pending, admission_capacity_exhausted, count_failure, or gateway_rate_limited
These are temporary. Wait a few seconds and retry. Each key runs one request at a time, so parallel agents or subagents on the same key wait for each other and can see these errors more often.
Can I use a client other than Claude Code or Codex?
Clients that let you set an Anthropic-compatible base URL and API key can work, as long as their requests fit the gateway limits. In tools such as Cline, Roo Code, OpenCode, and Aider, choose the Anthropic provider. Their "OpenAI compatible" provider uses the Chat Completions format, which the gateway does not offer.
Client FAQ
It says claude.ai connectors are disabled
This is expected while you are also logged into a Claude subscription. It is harmless and does not affect what you are billed.
I see an error without the boostmyagents: prefix
That is an authentication or rate error raised before our gateway checks. Check your key or wait and retry.
bma-cli warns about ANTHROPIC_* variables
Unset them in your shell profile, because they can override the gateway connection.
Can I use the key in Cursor’s own model settings?
Use the Claude Code extension in Cursor.
Stuck? Ask in our Discord.
Supported models
The gateway accepts only these model IDs. Requests for any other model are rejected and not charged.
Claude Code and the Anthropic SDK
claude-fable-5claude-fable-5-1claude-fable-5-2claude-opus-5-5claude-opus-4-8claude-opus-4-7claude-opus-4-6claude-sonnet-5-5claude-sonnet-4-6claude-haiku-5-5
claude-opus-5-5 needs Claude Code 2.1.280 or newer and claude-fable-5-1 needs 2.1.251 or newer. Run claude update if yours is older. See Claude Code is too old for this model.
Codex CLI
gpt-6-astragpt-6.1-solgpt-6-solgpt-5.6-solgpt-6.1-terragpt-5.6-terragpt-6-lunagpt-5.6-luna
When a model is added to this list, existing keys can use it within a few minutes. You do not need to regenerate your key.
boostmyagents can also run a reviewed catalog of other models through OpenRouter in Claude Code, billed at that model's price plus OpenRouter's fee. See Models through OpenRouter.
Gateway limits
The gateway only accepts requests whose cost it can calculate before they are sent, so a boost can never be overspent.
- One request at a time per key, shared between Claude Code and Codex.
- The gateway may cap a request’s maximum output length so it fits the remaining boost.
- Requests that would cost more than what remains are rejected before they reach the model provider.
- Tools that run on the provider are rejected with a code that names the feature to turn off in your tool’s settings:
web_search_unsupported,code_execution_unsupported,tool_search_unsupported,mcp_connector_unsupported, and on Codex alsofile_search_unsupported,image_generation_unsupported, andcomputer_use_unsupported.
Claude Code and the Anthropic SDK
- Only the Anthropic
/v1/messagesendpoint is available. - Tools that run on your own machine work normally, including Claude Code’s file, search, and shell tools.
- Tools that run on Anthropic’s servers are rejected: hosted web search (which Claude Code’s built-in web search relies on), web fetch, code execution, and hosted MCP servers.
- Web search and web fetch server tools are not supported and return
web_search_unsupported. In Cline: Settings, Feature Settings, turn off Web Search. - Fast mode, priority tiers, server-side model fallbacks, and server-side conversation compaction are rejected.
Codex CLI
Codex requests have their own limits, including how a cut-off response is charged. See Codex gateway limits.
Rejected requests are not charged.
Keeping your key safe
Treat the key like a password: keep it out of repositories, CI logs, and screenshots. If it leaks or you lose it, regenerate it from your dashboard, then run bma-cli setup again or update wherever you set the key.