Skip to content

Quickstart

Connect your repository, see its agents, attack them, and turn on guardrails. About five minutes. You need Python 3.11 or newer.

Steps

  1. 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.

    The Connect your first agent card. Step 1, Create a key, shows a new workspace key (masked here) with a copy button. Step 2 shows pip install -U agentfox and the agentfox init --key --server command with that key filled in.
  2. 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://…

    init reads 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.

    Terminal output of agentfox init --key: the agents and tools it recognised, Connected, and the question Add one line to main.py so your app's calls show up in AgentFox? [Y/n].
  3. 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.

    Step 3 of the card after agentfox init reported in: Agents identified, billing and support-triage with 4 tools, and an Add 2 agents to AgentFox button.
  4. 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.

    An agent map with the attack test panel. Each attack set shows how many attacks got through with no guardrails and with the basic guardrails.
  5. 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.

    An agent's Activity tab listing runs recorded from the app, each with its checks and verdict.

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 seeDo this
No agent found here.Run init in the repository where the agent is defined.
No such option: --keyUpgrade: pip install -U agentfox.
The attack test never startsKeep init running. It runs the tests on your machine.
An agent's attacks say Not runThe line says why. The test runs LangChain, LangGraph, OpenAI Agents SDK and CrewAI agents (a @CrewBase crew included); see Attack tests.
Nothing on ActivityStart the app from the folder where init ran, or set the two environment variables.