RAPTORCODE Docs

Reference

Troubleshooting

Fixes for the problems people hit most often, from API keys and balances to swarms that won't start and builds that macOS or Windows block.

Authentication failed: the key is invalid or revoked

DeepSeek rejected the key (HTTP 401 or 403). In the REPL you can enter a new key without losing the conversation, or use /api at any time. Outside the REPL, set a new key in DEEPSEEK_API_KEY, or delete ~/.raptor/.credentials and run raptor to enter one again.

HTTP 402: insufficient balance

The DeepSeek account has no balance. Top up at platform.deepseek.com/top_up, then check it with /balance. In a swarm, one agent hitting this stops the others.

Rate limited or overloaded (429, 503)

RaptorCode retries automatically with exponential backoff and honours Retry-After. If it keeps happening, wait a few minutes or switch to the other model with /model.

raptor swarm run refuses to start

It needs a git repository and an interactive terminal, and it refuses when CI=true. In CI, use raptor run instead.

It also refuses when a task or swarm with the same id already exists, because the id is derived from the mission text. Reword the mission, or clean up the earlier run as shown in The live swarm.

The agents don't see my latest changes

Swarm worktrees start from your last commit. Uncommitted changes in your checkout are not visible to the agents, and the run summary says how many files that affected. Commit before starting the swarm.

My request ran a swarm, but I wanted one agent

In a git repository, every request in the REPL launches the swarm. For a single agent, use raptor run "task", or run raptor from a folder that is not a git repository.

The agent stopped after 100 steps

In the REPL, type continue to resume a single agent. A swarm agent stops for good at its limit; its work stays in the role worktree for review. raptor run exits non-zero and leaves its work on disk.

raptor diff shows nothing after I committed

raptor review and raptor diff show uncommitted changes only. After committing in a worktree, compare branches with git, for example git diff HEAD...raptor/<task-id>/<role>.

raptor merge says the checkout is not clean

raptor merge requires a clean main checkout (apart from .raptor/), no unresolved conflicts, and, with --execute, no uncommitted changes in the task worktree. Commit or stash in your checkout, commit inside the task worktree, and try again.

raptor test refuses my command

Explicit commands after -- must be test commands: the test subcommands of cargo, npm, pnpm, yarn, bun, make and go, or pytest, python -m pytest and uv run pytest. Absolute paths and .. in arguments are refused.

macOS says the developer cannot be verified

The builds are not code-signed yet. After checking the checksum, run xattr -d com.apple.quarantine /usr/local/bin/raptor /usr/local/bin/raptorcode, or allow the app under System Settings → Privacy & Security.

Windows SmartScreen blocks raptor.exe

Run Unblock-File on the zip before extracting it, as shown in Installation. If you already extracted it, unblock the two .exe files the same way.

A command an agent needs keeps asking for confirmation

Network tools, sudo, git push and writes outside the workspace always ask. A search pattern that contains a gated word, such as rg "reqwest|curl", can also ask, because the policy splits commands at |. Approve it if it is what you expect, or let the agent use search_files instead.

#Still stuck?

Run raptor doctor and include its output, your platform and raptor --version when you ask for help: