Troubleshooting
bytemind: command not found
The binary is installed but not on your PATH.
Fix: Add the install directory to your PATH:
export PATH="$HOME/bin:$PATH"Add this to ~/.bashrc, ~/.zshrc, or your shell profile to make it permanent. On Windows, use:
[Environment]::SetEnvironmentVariable("Path", "$env:USERPROFILE\bin;" + $env:Path, "User")Provider Authentication Failed
Symptom: 401 Unauthorized or authentication failed in the output.
Check:
provider.api_keyor the env var named inprovider.api_key_envis set and correctprovider.base_urlpoints to the right endpoint (no trailing slash, correct version path)provider.modelexists on your provider plan
# Quick test
curl -s -H "Authorization: Bearer $OPENAI_API_KEY" \
https://api.openai.com/v1/models | head -c 200If the curl returns models, your key is valid. If ByteMind still fails, verify the base_url in config exactly matches the working curl URL.
Agent Stops Too Early
Symptom: The agent outputs a partial result and says it hit the iteration limit.
Fix: Raise max_iterations:
bytemind chat -max-iterations 64Or set it permanently in your config:
{ "max_iterations": 64 }Config File Not Loaded
Symptom: ByteMind behaves as if no config exists (uses defaults).
Check the config search path:
.bytemind/config.jsonin the current directoryconfig.jsonin the current directory~/.bytemind/config.jsonin the home directory
Run bytemind chat -v to see which config file was loaded.
Session Not Found After Resume
Symptom: /resume <id> reports session not found.
Check:
- You are in the same working directory where the session was created
- Session files exist in
.bytemind/sessions/ BYTEMIND_HOMEenv var is not pointing to a different directory
Sandbox Blocks Writes
Symptom: The agent fails to write a file with a permission error even though the path looks valid.
Fix: Add the path to writable_roots in your config:
{
"sandbox_enabled": true,
"writable_roots": ["./src", "./docs"]
}Or disable sandbox for local development:
{ "sandbox_enabled": false }Streaming Output is Garbled
Symptom: Output looks corrupted or shows raw escape codes.
Fix: Disable streaming:
{ "stream": false }This is more common in non-TTY environments (e.g. piped output, certain CI runners).
Context Window Exceeded
Symptom: The agent warns about context usage and stops mid-task.
Options:
- Start a fresh session (
/new) for long conversations - Break the task into smaller pieces
- Adjust
context_budget.warning_ratioandcontext_budget.critical_ratiothresholds
See Also
- FAQ — common questions and answers
- Configuration — config options for tuning behavior
- Installation — PATH and version pinning