Quickstart
Connect your repository, see its agents, attack them, and turn on guardrails. About five minutes. You need Python 3.11 or newer.
Steps
Create a key
Sign in; signing in creates your workspace. On the Agents page, press Create a key and copy it. It is shown once.

Run init in your repository
Copy the command from the card. It has your key and server filled in.
bash pip install -U agentfox agentfox init --key nom_api_… --server https://…initreads your code without running it and lists the agents and tools it found. Answer Y so your app's calls show up on the dashboard. Leave it running: it runs the attack tests in the next step.Add your agents
Back on the card, press Add agents to AgentFox. Each agent may call the tools its own code gives it, and nothing else. Until you do, every page asks again (also for an init in a second repository); Not now leaves them under Agents → Proposed.

Test, then add the basic guardrails
The first attack test starts by itself, with no guardrails. When it finishes, press Turn on basic guardrails and test again. Each row shows how many attacks got through before and after.

Run your app
Run it as you always do. Each model and tool call appears on the agent's Activity tab with the checks it went through.

What is on by default
- Tool containment watches: a call to a tool the agent was not given, or a tool that changes something driven by untrusted content, is recorded as what it would have stopped. It blocks once you switch it to block.
- The basic guardrails block prompt attacks and hide personal data and secrets in replies. On an agent with real traffic they watch first, so nothing changes until you switch them to block.
If something goes wrong
| You see | Do this |
|---|---|
| No agent found here. | Run init in the repository where the agent is defined. |
| No such option: --key | Upgrade: pip install -U agentfox. |
| The attack test never starts | Keep init running. It runs the tests on your machine. |
| An agent's attacks say Not run | The line says why. The test runs LangChain, LangGraph, OpenAI Agents SDK and CrewAI agents (a @CrewBase crew included); see Attack tests. |
| Nothing on Activity | Start the app from the folder where init ran, or set the two environment variables. |