Skip to main content
By the end of this guide, your agent will authenticate with Anti AI and receive a short-lived access token.

1. Create your account

Go to app.antiailabs.com and sign up. Anti AI creates a workspace for your organization and gives you the Owner role.

2. Install the SDK

3. Register an agent

In the dashboard, click Agents → New Agent. Enter a name and click Create Agent.
Copy the Client Secret — it’s shown exactly once and can’t be retrieved again.

4. Create a policy

Go to Policies → New Policy, name it allow-db-read, and paste:
Save it, then go to your agent → Settings → Policies and assign it.

5. Get a token

If you see a token printed — you’re done.
The SDK caches the token and renews it automatically. You never manage token lifetimes yourself.

Run your agent

Complete agent example with error handling.

Write policies

Control what your agents can access.