Skip to main content

Troubleshooting

This page is a symptom index. It points you to the right command and the right owner page without copying every setup guide. For a full local health report, start with anyy status and anyy doctor.

How to Use This Page

  1. Run the first-step commands below.
  2. Match the failing area to the symptom index.
  3. Follow the linked page for the detailed fix.
  4. If you collect output for someone else, redact secrets and tokens first.

Most commands accept --home PATH; use it whenever you are not sure which profile/home is active.

Isolate The Scope First

Before changing config, confirm whether the problem follows a profile, a resident gateway, one channel, or one session:

anyy profile list
anyy status --home ~/.anyy
anyy gateway status --home ~/.anyy

If only one channel is failing, start with anyy channels doctor CHANNEL. If only one conversation is failing, try /status, /sessions, /history, and /stop from the active surface before editing global config.

First Steps: status & doctor

Check the runtime surface:

anyy status --home ~/.anyy
anyy status --home ~/.anyy --json

status reports the resolved home, profile, default role, timezone, gateway state, gateway listener, cron, heartbeat, storage, and MCP summary. If the gateway is reachable, it merges live gateway status into the local report.

Then run doctor:

anyy doctor --home ~/.anyy
anyy doctor --home ~/.anyy --json

doctor checks filesystem, profile, config validity, timezone, gateway listener, channel config and secret refs, cron, heartbeat, MCP, and storage. JSON output is best for bug reports because every check has name, status, and detail.

Symptom Index

Install & update

SymptomCheckNext page
anyy is not foundwhich anyy and anyy --versionInstallation
Installed version differs from the running gatewayanyy gateway statusGateway
Update check failsanyy update --check --home ~/.anyyUpdating
You need to remove Anyyanyy uninstall --keep-data --yes or --full --yesData, Retention & Deletion

Setup & providers

SymptomCheckNext page
Config parse or validation failureanyy config --home ~/.anyy; anyy doctor --home ~/.anyyConfiguration Reference
Provider key missingCheck api_key_ref or credential_ref and the referenced env/file/secretCredentials & Auth
Wrong model selectedanyy setup model --home ~/.anyyConfiguring Models
Fallback routing is not usedanyy setup model fallback --home ~/.anyyConfiguring Models

Gateway won't start or stay up

SymptomCheckNext page
TUI works but one-shot chat failsStart the resident gateway: anyy gateway startGateway
Socket cannot be reachedanyy status --socket PATH; inspect anyy.sock and runtime.jsonGateway
Service manager unsupportedanyy gateway status --home ~/.anyyRunning as a Resident Service
Gateway runs an older binaryanyy gateway restartUpdating
Heartbeat is stale or degradedanyy heartbeat status --home ~/.anyyHeartbeat

Channels not delivering

SymptomCheckNext page
Channel config is present but disabledanyy channels doctor CHANNEL --home ~/.anyyChannels Reference
Secret ref failsResolve the secret:, env:, or file: ref for that channelChannels Reference
Telegram does not respondanyy channels doctor telegram --home ~/.anyyTelegram Setup
A config change was not picked upanyy channels reload --home ~/.anyyMessaging Gateway
Live smoke is warnSet ANYY_LIVE_CHANNEL_TESTS=1 plus the channel's test env varsChannels Reference

MCP servers failing

SymptomCheckNext page
Server not listedanyy mcp list --home ~/.anyyMCP Config Reference
Server config exists but tools are absentanyy mcp show SERVER_ID --home ~/.anyy --jsonMCP Integration
Server cannot connectanyy mcp probe SERVER_ID --home ~/.anyyMCP Integration
Runtime needs a reloadanyy mcp reload [SERVER_ID] --home ~/.anyyMCP Config Reference

Authentication errors

SymptomCheckNext page
Env ref is emptyprintenv NAME for env:NAME refsEnvironment Variables
Profile-local secret is missingCheck ~/.anyy/secrets/<name> for secret:<name> refsData, Retention & Deletion
Provider auth profile is unsupportedCheck provider profile, auth_mode, and auth_profileProvider Config
OAuth or external auth needs refreshRun the provider setup/auth flow againCredentials & Auth

Performance

SymptomCheckNext page
State database grows largeanyy status --json storage sectionData, Retention & Deletion
Raw backlog growsanyy maintenance prune-inactive-sessions --home ~/.anyyMaintenance
Token estimates missinganyy maintenance cache-token-estimates --home ~/.anyy --executeMaintenance
A turn is stuckUse TUI /stop, /queue, /btw, or /busy interruptSessions

Common Patterns

PatternCauseFix
Works in TUI, fails from anyy chatEmbedded gateway exists, resident gateway is not reachableStart the resident gateway for the same home/profile.
Works in default profile, fails in anotherConfig, secrets, skills, or channel state are profile-localRun setup or copy only the intended config into that profile.
Doctor passes, live request failsDoctor is mostly local validationRun the provider, MCP, or channel-specific live probe.
A secret works in your shell but not as a serviceService manager did not inherit your shell environmentStore it as secret: or inject it into the service environment.

Collecting a Debug Bundle

Use the debug command from an active TUI or compatible command surface when it is available:

/debug

For CLI-only reports, collect these instead:

anyy --version
anyy status --home ~/.anyy --json
anyy doctor --home ~/.anyy --json
anyy gateway status --home ~/.anyy

Do not include raw secret values, bot tokens, OAuth credentials, private channel messages, or full logs that may contain user data. Anyy redacts known secret values, but you should still review anything you share.

Where to Get Help

When asking for help, include:

  • Anyy version.
  • OS and install method.
  • The exact command you ran.
  • The relevant status --json and doctor --json checks.
  • Whether the issue is tied to one profile/home, one channel, or one session.

Avoid screenshots that expose tokens, channel IDs, private messages, or local filesystem paths you do not want to share.