Troubleshooting
Fix the common problems, stop an agent that is misbehaving, and get help when neither works.
Start with doctor
agentfox doctor checks the setup: database, detectors, keys, modes, egress. It says what is wrong and what to change.
agentfox doctorCommon problems
| You see | Do this |
|---|---|
| init says no agent found | Run agentfox init in the repository where the agent is defined. |
| No such option: --key | Upgrade: pip install -U agentfox. |
| Nothing appears on Activity | Start the app from the folder where init ran, or set the two environment variables. |
| The attack test never starts | Keep agentfox init running. It runs the attacks on your machine. |
| A real user gets blocked | Open the run on Activity, press Wrong on the check, then follow Fix false positives. |
| An attack is flagged but not stopped | The guardrail is in Watch. Switch it to Block. |
| A tool call is refused for no clear reason | The agent was not given that tool. Check its Access tab, or agentfox permit list. |
| A detector you turned on never fires | Its extra or model weights are missing. agentfox admin detectors list says what it needs. |
| Webhooks, Slack or a hosted model do nothing | Set AGENTFOX_ALLOW_EGRESS=true. With egress off nothing leaves the server. |
| API calls return 401 | The server requires tokens. Send Authorization: Bearer nom_api_…; agentfox admin auth status says which mode is on. |
CI says unknown suite | AGENTFOX_DATABASE_URL points at a different database from the one with the suite. |
| Compliance counts are all zero (Enterprise) | Press Load control catalog on Reports → Compliance, or run agentfox admin catalog sync. Without AgentFox Enterprise there is no compliance view; the open core has agentfox report and agentfox report verify. |
| The audit log check fails | An entry was changed or removed after it was written. agentfox report verify names the first broken entry. |
| agentfox up edited my file and I want it back | up adds two lines to the entry point: import agentfox and agentfox.auto(…), marked # added by `agentfox up`. Delete them, or restore the file from version control. Everything else it wrote is listed under Uninstall. |
Every run prints AgentFox is governing … | That banner on stderr is auto() saying what it covers. agentfox.auto(quiet=True) hides it; AGENTFOX_VERBOSE=1 prints the full account. |
| I want AgentFox off for a while | Set AGENTFOX_DISABLED=1 and restart the app. See Turn it off. |
Questions people ask
- Does AgentFox block my users from the start?
- No. Checks start in Watch: they record what they would have stopped. What is refused from the start is a destructive command or statement, an agent you paused, and, once an agent holds any grant, a tool it was not given. You switch a guardrail to Block when its results look right.
- Does my traffic leave my machine?
- Not to AgentFox without a key. With one,
auto()sends each check to your account: exactly what is sent. - Do I need a database or a server?
- No. Without an account, the CLI and
auto()use one SQLite file per installation, created on first use (where it lives). Postgres andagentfox serveare for a shared, self-hosted deployment. - Do I need a database in CI?
- No.
agentfox scan --failand the GitHub Action read the repository and write nothing. Commands that keep state create a SQLite file on first use; pointAGENTFOX_STATE_DIRat a temporary folder so each run starts clean. - How do I turn it off, or remove it?
AGENTFOX_DISABLED=1turnsauto()off without a code change. Uninstall lists every file AgentFox writes and how to revoke your key.- Which commands need AgentFox Enterprise?
- Compliance, evidence packages and monitoring of connected sources. They are marked Enterprise in the CLI reference, and the open-source package says so if you run one.
- The app says Issues, the CLI says findings. Same thing?
- Yes. The glossary maps each name in the app to the CLI's.
When an agent misbehaves
- Stop it: Stop in the agent's status menu, or
agentfox agents kill support-triage(use your agent's name;agentfox agents listshows them). Every call it makes is refused until you resume it. - Deny its calls waiting on Approvals.
- See what it can reach:
agentfox agents lineage support-triage. - Read its recent runs on Activity.
- Withdraw the tool that was misused on its Access tab, or with
agentfox permit revokeand the grant id fromagentfox permit list. - Resume it (
agentfox agents resume support-triage) and check the audit log is intact:agentfox report verify.
Get help
File bugs and questions on GitHub issues. Include the output of agentfox doctor and agentfox admin version, the verdict and rules that fired, and the smallest example that shows the problem, with made-up values. Report a security vulnerability through GitHub's private security advisories, never in a public issue. More ways to reach us are on Support.