Skip to content

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.

bash
agentfox doctor

Common problems

You seeDo this
init says no agent foundRun agentfox init in the repository where the agent is defined.
No such option: --keyUpgrade: pip install -U agentfox.
Nothing appears on ActivityStart the app from the folder where init ran, or set the two environment variables.
The attack test never startsKeep agentfox init running. It runs the attacks on your machine.
A real user gets blockedOpen the run on Activity, press Wrong on the check, then follow Fix false positives.
An attack is flagged but not stoppedThe guardrail is in Watch. Switch it to Block.
A tool call is refused for no clear reasonThe agent was not given that tool. Check its Access tab, or agentfox permit list.
A detector you turned on never firesIts extra or model weights are missing. agentfox admin detectors list says what it needs.
Webhooks, Slack or a hosted model do nothingSet AGENTFOX_ALLOW_EGRESS=true. With egress off nothing leaves the server.
API calls return 401The server requires tokens. Send Authorization: Bearer nom_api_…; agentfox admin auth status says which mode is on.
CI says unknown suiteAGENTFOX_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 failsAn 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 backup 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 whileSet 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 and agentfox serve are for a shared, self-hosted deployment.
Do I need a database in CI?
No. agentfox scan --fail and the GitHub Action read the repository and write nothing. Commands that keep state create a SQLite file on first use; point AGENTFOX_STATE_DIR at a temporary folder so each run starts clean.
How do I turn it off, or remove it?
AGENTFOX_DISABLED=1 turns auto() 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

  1. Stop it: Stop in the agent's status menu, or agentfox agents kill support-triage (use your agent's name; agentfox agents list shows them). Every call it makes is refused until you resume it.
  2. Deny its calls waiting on Approvals.
  3. See what it can reach: agentfox agents lineage support-triage.
  4. Read its recent runs on Activity.
  5. Withdraw the tool that was misused on its Access tab, or with agentfox permit revoke and the grant id from agentfox permit list.
  6. 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.