Quickstart without an account
Find the agents in your repository, watch every call your app makes, and read what AgentFox found. Nothing leaves your machine. You need Python 3.11 or newer.
Steps
Scan the repository
bash pip install agentfox agentfox scanscanreads your code without running it. It names each agent, the tools it can reach, and any agent that reads private data, reads untrusted content and can send data out.Set up
bash agentfox upEvery question has a recommended answer; press Enter to take it.
upregisters your agents under the names your code uses and addsagentfox.auto("<agent>")to the file that starts one: a script inpyproject.toml, the graphlanggraph.jsonloads, or the file that runs it (Runner.run,crew.kickoff(),graph.invoke()), undersrc/too. It starts in watch mode, so nothing is blocked yet.In a Python agent's repository it changes nothing else by default: no coding-agent hooks, no GitHub workflow, no background processes. Add them with
--with coding-agents,--with cior--with view.Besides the repository,
upreads (never changes) the MCP and skill settings of the AI tools on this machine, such as~/.claudeand~/.cursor, and says so.--skip-machineleaves them out.agentfox.auto()governs Google ADK (through google-genai, including the functions it calls for the model) and smolagents (its huggingface_hub model calls, and each tool where it runs), as it does the OpenAI, Anthropic, LiteLLM, LangChain and CrewAI routes.Run your app
Run it as you always do. Each model and tool call is checked and recorded in a database on this machine. When the app exits, it prints how many calls it checked.
Read what it found
bash agentfox findingsEach row is something a person should look at. "Would have been" means a rule caught it and watch mode let it through.
Start blocking, one library at a time
bash agentfox policy enforce tool-containment # tool calls agentfox policy enforce baseline # prompt attacks, personal data, secretsWhen what it would have stopped is what you want stopped, turn that library to blocking. Your app picks it up on its next call, with no code change. Running
upagain never turns it back.agentfox policy observe <library>goes back to watching.Attack-test it
bash agentfox test redteam <agent>Writes attacks from the agent's own tools and the ones it reaches by handing off (unsafe tool use, prompt injection, data leaks, jailbreaks) and checks each one the way live traffic checks it: the message, then the tool call it is after. No model runs, so it measures your rules, not how your model answers; the dashboard's attack test sends the same attacks to the real agent.
upprints the command with your agent's name filled in.
Connect to an account later
Sign in (that creates your workspace), press Create a key on Get started, and run the init command from the card in the same repository, or agentfox login from the terminal. Either saves the key in .agentfox/agentfox.env, and from then on your app's calls go to your account and show up on the dashboard. The CLI uses the same account: findings, agents list, permit, declare, policy, report and test suites read and write it, and each prints which it uses. agentfox doctor checks the key. The Quickstart walks through it. To set the key another way, see where auto() finds the key.
agentfox login --server <gateway address from Get started>If something goes wrong
| You see | Do this |
|---|---|
| The scan finds no agent | Run it in the repository where the agent is defined. It reads Python, TypeScript and JavaScript. |
agentfox findings is empty | Check that your app starts with agentfox.auto() and that you ran it from the folder where you ran up. |