Troubleshooting
This page is organized as: symptom -> likely causes -> 3-step checks.
1) neocode command not found
Symptom
- Terminal says
command not foundor executable is missing.
Likely causes
- Install script did not complete.
- Binary path is not in
PATH.
3-step checks
- Run
neocode versionandneocode --help. - If missing, rerun the install steps in Install and Run.
- Open a new terminal session and run
neocode versionagain.
2) API key is set but auth still fails
Symptom
- Requests fail with
unauthorizedor invalid API key errors.
Likely causes
- Env vars were set in a different shell session.
- Current provider does not match the env var you set.
3-step checks
- Use
/providerto confirm the active provider. - Check the env var mapping in Configuration.
- Restart terminal, then launch
neocodeagain.
3) Provider/model switch does not apply
Symptom
- You switched provider/model but behavior still looks old.
Likely causes
- Current session still carries previous context.
- Target model is unavailable under that provider.
3-step checks
- Reconfirm with
/providerand/model. - Run
/statusto inspect current session state. - Start a new session and retry the same prompt.
4) Too many permission prompts
Symptom
- Frequent approval prompts for file edits or commands.
Likely causes
- Current policy is still
Ask. - Slight parameter changes make requests non-identical.
3-step checks
- Read Tools and Permissions decision table.
- Use
Allowfor stable, trusted repetitive actions. - Keep
Askfor unknown repos or risky operations.
5) Gateway connection or URL dispatch fails
Symptom
- Gateway is running but external request flow still fails.
Likely causes
- Gateway not ready or listening mismatch.
- Auth token mismatch.
- Origin/source policy blocks request.
3-step checks
- Start
neocode gatewayseparately and confirm it is healthy. - Verify minimal local path first on
127.0.0.1:8080. - Review limits in Gateway Usage.
6) Long sessions drift or degrade
Symptom
- Answers become repetitive, miss context, or quality drops.
Likely causes
- Prompt budget is too tight for current context.
- Session history contains too much noise.
3-step checks
- Trigger manual compaction with
/compact. - Tune
context.budget.*andcontext.compact.*in config. - Start a new session for unrelated tasks.
Still blocked?
- Return to Getting Started for a minimal path
- Daily operations: Daily use
- Gateway issues: Gateway usage
