Skip to main content

Troubleshooting

Where to start​

  1. bee status shows in a few lines whether each account is taking work and, if not, why.
  2. bee doctor runs every check in order and tells you what to fix. It reads the same configuration bee run uses and is read-only, so it is safe to run while Bee is running.
  3. The terminal where Bee runs. Problems are printed with an error code and a fix.

bee doctor checks the device configuration, the egress configuration, each platform's local login, the connection to Hive and the device identity, and finally each account and its supply state on the Hive side. Each line is ok, WARN, FAIL or skip:

ok device "My MacBook" paired with you@example.com on https://console.tokhive.ai
ok egress /home/you/.config/tokhive/egress.json supplies openai and claude
ok authorization (openai) ...
FAIL supply (claude) [quota_exhausted] ...
fix: ...

A line marked fix (administrator) needs the marketplace administrator; everything else you can fix yourself. Add --json for a machine-readable report.

Bee prints error codes such as BEE-CONFIG-TARGET-MISSING in its terminal output and in bee doctor --json. Codes never change once published, so you can search this page for them or quote them when you ask for help. When you report a problem, include the code, the time it happened and the output of bee version.

Common problems​

bee: command not found​

The install directory is not on your PATH. The install script uses ~/.local/bin. Add it to your shell profile (for example export PATH="$HOME/.local/bin:$PATH" in ~/.zshrc or ~/.bashrc) and open a new terminal.

macOS refuses to open Bee​

A binary downloaded through a browser is quarantined. Run xattr -d com.apple.quarantine bee, or install with the install script. See Install.

Pairing doesn't complete​

  • The code is valid for 10 minutes and can be used once. If it expired, run bee start again; it resumes the pairing with a new code.
  • Open the link in a browser where you are signed in to TokHive with the account that should own this device.
  • Don't delete bee.json to start over; the same file resumes where it stopped.
  • BEE-START-HIVE: the machine is not paired and Bee doesn't know your Hive. Pass --hive https://console.tokhive.ai, or copy the command from the Bee Device page.
  • "this machine is paired with … ; use a separate --config path for another Hive": the configuration already belongs to another Hive. See Configuration.

Bee doesn't find my subscription​

bee setup only finds logins of the same system user that runs Bee.

  • OpenAI: sign in with codex login. If your Codex directory is not ~/.codex, pass --codex-home or set CODEX_HOME. Error: BEE-SETUP-CODEX-NOT-FOUND.
  • Claude on macOS: sign in with claude. When Bee first reads the Keychain, macOS may ask for permission; allow it. If the Keychain is locked, unlock it.
  • Claude on Linux: sign in with claude so that ~/.claude/.credentials.json exists (or $CLAUDE_CONFIG_DIR/.credentials.json). It must be a regular file, not a symbolic link, and readable by the user running Bee.
  • Running from a script or without a terminal: add --yes (BEE-SETUP-NO-ANSWER).

You can check what Bee sees without contacting Hive:

bee codex-status
bee claude-status

Bee is online, but an account doesn't take work​

Run bee status, then look up the reason in Why an account is not taking work. bee supply-status --platform openai (or claude) shows the details for one platform. Some reasons are temporary and clear by themselves: right after starting, the first model and quota report usually takes a few minutes.

No requests arrive although the account is ready​

Being ready means Hive may send work to the account. Requests only arrive when Consumers ask for models your account offers, and the market matches them to you. Check that your quote on the My Quote page is competitive.

Network and proxy​

  • BEE-HIVE-UNREACHABLE: Bee can't reach Hive. Check the network and the Hive address. Bee keeps retrying on its own.
  • BEE-EGRESS-DIAL: Bee can't reach chatgpt.com or api.anthropic.com. Check DNS, firewall, and whether this machine needs a proxy.
  • BEE-EGRESS-PROXY: the proxy in connect_proxy isn't running or refused the CONNECT.

If the machine needs a proxy for the upstream platforms, set one with bee setup --connect-proxy http://127.0.0.1:PORT, or export HTTPS_PROXY. See Configuration.

I switched accounts in the official client​

Bee doesn't silently switch to a different account. New work for that platform is paused, and bee status reports that the account changed. Look at the pending account, then confirm it:

bee account-status --platform claude
bee confirm-account --platform claude --account-fingerprint <full fingerprint>

The official client asks me to sign in again​

When Bee and the official client use the same account, a refresh of the login on both sides at the same moment can, rarely, sign the official client out. Sign in again; Bee picks up the new login automatically and work already settled is not affected.

BEE-DEVICE-REPLACED​

Another machine was paired to your account and replaced this one. Run Bee on the new machine. To supply from this machine again, run bee login here and confirm the replacement in the console.

Bee stops: "the TEE did not prove the inbox key belongs to a trusted enclave"​

Before it seals your login, Bee checks the TEE's hardware attestation against the TEE images built into its release (see How the access token is sealed). This message means the check failed, so Bee sent nothing and stopped. Retrying doesn't help.

  • Most often, Bee is older than the TEE. After a TEE upgrade, a Bee release that doesn't know the new image refuses it. Update Bee and start it again.
  • If the latest Bee still stops with this message, keep it stopped and report it with the full message and the time.

Why an account is not taking work​

These are the reasons Hive gives. bee status shows the description; bee supply-status and the Bee Device page show the code. Reasons marked administrator need the marketplace administrator.

Codebee status showsWhat to do
offlineBee offlineStart Bee and make sure it can reach Hive.
manually_pausedmanually pausedbee resume --platform <platform>.
not_configuredsupply not configuredAdd the platform with bee setup and restart Bee. If it is already configured, ask the administrator whether the market offers this platform.
capabilities_unknownaccount capabilities unknown or expiredKeep Bee running with capability reports on; a report usually arrives within a few minutes.
authorization_unavailableno valid online authorization envelopeKeep Bee running. If it persists, sign in again with the official client.
quota_unknownquota awaiting a new queryKeep Bee running; it retries the quota query.
quota_exhaustedaccount quota exhaustedNothing to do; supply resumes when the quota window resets.
rate_limitedupstream rate limit cooldown activeNothing to do; supply resumes when the cooldown ends.
concurrency_fullaccount concurrency limit reachedNothing to do; new work arrives as requests in flight finish.
model_unavailablemodel not tradableNone of the market's models is available to this plan. Check the plan in the official client.
codex_source_unavailablewaiting for official Codex authorization recoverySign in again with codex login; a running Bee picks it up.
claude_source_unavailablewaiting for official Claude Code authorization recoverySign in to Claude Code again; a running Bee picks it up.
codex_authorization_rejectedCodex authorization rejected by upstreamSign in again with codex login.
claude_authorization_rejectedClaude authorization rejected by upstreamSign in to Claude Code again.
codex_confirmation_requiredOpenAI account changed; awaiting explicit confirmationSee I switched accounts.
claude_confirmation_requiredClaude account changed; awaiting explicit confirmationSee I switched accounts.
device_drainingdevice being replaced; finishing in-flight execution and settlementRun the new Bee; it takes over once the old one has drained.
plan_not_configuredno concurrency limit configured for this planAdministrator. Email hello@tokhive.ai.
bannedbanned by administratorAdministrator. Email hello@tokhive.ai.

Error code reference​

Setup​

CodeMeaning and fix
BEE-SETUP-NEEDEDNo subscriptions chosen yet. Bee stays online but supplies nothing. Run bee setup, then restart Bee.
BEE-START-HIVENot paired and no Hive address given. Pass --hive, or copy the command from the Bee Device page.
BEE-SETUP-PLATFORM--platform names an unknown platform. Use openai, claude, or openai,claude.
BEE-SETUP-CODEX-NOT-FOUNDNo Codex directory at --codex-home, $CODEX_HOME or ~/.codex. Sign in with codex login, or pass the directory.
BEE-SETUP-NO-ANSWERSetup needs an answer but has no terminal. Run it in a terminal, or add --yes.
BEE-SETUP-NOTHINGNo account selected, so nothing was written. Sign in to the official clients and run bee setup again.
BEE-SETUP-WRITEThe egress configuration couldn't be written. Usually the directory doesn't exist or belongs to another user.
BEE-SETUP-MANUALThe existing file has settings bee setup doesn't manage, so it is left alone. Edit it by hand, or write elsewhere with --egress-config.

Device and Hive​

CodeMeaning and fix
BEE-DEVICE-CONFIGbee.json can't be used: wrong permissions, not a regular file, or corrupted. Check the path and run chmod 600. Don't delete it.
BEE-DEVICE-NOT-PAIREDPairing hasn't finished. Run bee start or bee login and confirm the code in the console.
BEE-DEVICE-REPLACEDAnother Bee replaced this device. Run the new one, or pair this machine again with bee login.
BEE-HIVE-UNREACHABLECan't connect to Hive. Check the network and the Hive address.
BEE-HIVE-CREDENTIALHive rejected the device credential. Check that the configuration belongs to this Hive; if so, pair again with bee login.
BEE-HIVE-ERRORHive returned an unexpected error. Try again later; if it persists, report the code, HTTP status and time to the administrator.

Local login​

CodeMeaning and fix
BEE-CODEX-SOURCECan't read the Codex login; the message gives the reason. Sign in with codex login and check codex.home and codex.store.
BEE-CODEX-EXPIREDWarning: the Codex token expired. While Bee is online Hive schedules a refresh; if supply doesn't recover, sign in again.
BEE-CLAUDE-SOURCECan't read the Claude Code login. Sign in with claude as the user running Bee; on macOS allow Keychain access, on Linux check .credentials.json.
BEE-CLAUDE-EXPIREDThe Claude token expired. Open Claude Code so it renews the login, or enable claude.refresh.
BEE-CLAUDE-SCOPEThe login lacks the user:inference scope. Sign in to Claude Code again with a subscription account.
BEE-CLAUDE-UNSUPPORTEDclaude.store is keychain on Linux. Set it to file, or run bee setup again.

Egress configuration​

These appear when egress.json was edited by hand. Running bee setup again usually fixes them.

CodeMeaning and fix
BEE-CONFIG-NOT-FOUNDThe file doesn't exist. Check the --egress-config path.
BEE-CONFIG-NOT-REGULARThe path is a directory or a symbolic link. Point to the file itself.
BEE-CONFIG-PERMISSIONSOther users can access the file. Run chmod 600.
BEE-CONFIG-UNREADABLEThe file can't be read, usually because another user owns it.
BEE-CONFIG-TOO-LARGEThe file is larger than 64 KiB.
BEE-CONFIG-SYNTAXInvalid JSON; the message gives line and column.
BEE-CONFIG-UNKNOWN-FIELDA field Bee doesn't recognize, often a typo.
BEE-CONFIG-FIELD-TYPEA field has the wrong type, for example targets as a string instead of a list.
BEE-CONFIG-TRAILING-DATAContent after the JSON object.
BEE-CONFIG-NO-TARGETStargets is empty or missing.
BEE-CONFIG-TOO-MANY-TARGETSMore than 16 targets.
BEE-CONFIG-TARGET-FORMATA target isn't host:port.
BEE-CONFIG-TARGET-MISSINGA configured platform's address is missing from targets: chatgpt.com:443 for codex, api.anthropic.com:443 for claude.
BEE-CONFIG-NO-SOURCENeither codex nor claude is configured.
BEE-CONFIG-PROXYconnect_proxy isn't http://127.0.0.1:PORT (or another loopback address).
BEE-CONFIG-CAPABILITIES-SOURCEThe top-level capabilities needs codex. For Claude, use claude.capabilities: true.
BEE-CONFIG-CLAUDE-STOREclaude.store must be keychain (macOS) or file.
BEE-CONFIG-STATIC-MIXED, BEE-CONFIG-STATIC-CREDENTIAL, BEE-CONFIG-INBOX-KEY, BEE-CONFIG-CAPABILITIES-URLFields for test setups only (credential, inbox_key_id, capabilities.local_url). Remove them for real supply.

Upstream connections​

bee run logs these as WARN lines while serving work. The same code and host are logged at most once a minute. They are also reported to Hive, without any traffic, so the administrator can help diagnose them.

CodeMeaning and fix
BEE-EGRESS-DIALCan't connect to the upstream platform; the log gives the system's reason (DNS, timeout, refused). Check network, DNS and firewall, or set a proxy.
BEE-EGRESS-PROXYCouldn't open a tunnel through connect_proxy. Make sure the proxy runs and allows CONNECT.
BEE-EGRESS-NOT-ALLOWEDHive asked for an address not in targets, and Bee refused. If it belongs to a platform you supply, add it to targets; otherwise the allowlist is working as designed.
BEE-EGRESS-METADATABee didn't understand a request from Hive, usually because Bee is out of date. Upgrade Bee.

Getting more detail​

TOKHIVE_LOG_LEVEL=debug bee start # verbose logs
TOKHIVE_LOG_FORMAT=logfmt bee start # structured logs in the terminal
bee doctor --json # machine-readable report

Logs never contain your tokens, Consumer prompts or model responses, but they do contain account fingerprints and your Hive address. Review them before sharing.

Still stuck? Email hello@tokhive.ai with the output of bee doctor and bee status.