- Query your organization’s Asset Map.
- Create and manage team workflows.
- Assemble agents and control their runs.
- Work with targets, vulnerabilities, and evidence.
Install the SDK
ANTIGEN_API_KEY in your environment. See Authentication for creating and using API keys.
Python support is planned. Python applications can use the Antigen API directly.
Run an agent
To start a run, retrieve an agent or construct one locally. This example uses tCell to test your approved targets and collect the vulnerabilities it discovers.antigen.agents.get(tCell) retrieves tCell’s configuration. Calling agent.run() with a task starts testing in a sandbox and returns a Run object. run.wait() waits for completion, and run.vulnerabilities.list() retrieves the vulnerabilities discovered during the run.
You can run the same agent again against different approved targets. Each invocation creates a separate run with its own progress and results. See Targets for submitting targets, updating them, and checking their approval status.
Customize an agent
tCell, triage-agent, and remediation-agent are pre-built agents developed with the same SDK. You can retrieve them using the exportedtCell, triageAgent, and remediationAgent constants.
An agent’s configuration determines its model, skills, guardrails, and tools. You can customize an existing agent by replacing configuration fields or adding to them. This example keeps tCell’s configuration and appends a skill describing your application’s authentication: