Skip to content
Browse the documentation

Agents

Register AI agents in AgentLock, authenticate them with Ed25519 keys or API tokens, restrict their allowed tools and revoke them.

What is an agent in AgentLock?

An agent represents an AI system (like a GPT-based assistant, an autonomous agent, or a script) that interacts with external services through AgentLock. Each agent has:

  • Name — A human-readable identifier.
  • Environment — Development, Staging, or Production.
  • Public Key — Used to verify the agent's request signatures. The private key stays with the agent.
  • Allowed Tools — An optional allowlist of which tools/connectors the agent can use.
  • Status — Active, Revoked, or Suspended.
  • Assigned Policy — An optional policy override (otherwise the workspace default policy applies).

How does agent authentication work?

AgentLock supports two authentication methods:

Ed25519 Request Signing (recommended):

  • When you register an agent, a keypair is generated. The public key is stored in AgentLock, the private key goes to the agent.
  • Every request the agent sends includes a signature header — a signature over the HTTP method, the URL path, a timestamp, a nonce and the canonical request body.
  • The Gateway verifies this signature using the stored public key.
  • If the signature doesn't match, the request is rejected immediately.
  • Replay protection: Each request includes a unique nonce and timestamp. Duplicate nonces and timestamps older than 5 minutes are rejected.

Bearer Token Authentication:

  • For environments where Ed25519 signing is not practical (e.g., remote MCP clients), you can create API tokens.
  • Go to Agents, select an agent, and use the Tokens tab to generate a token.
  • The plaintext token is shown once at creation and never stored — only a SHA-256 hash is kept.
  • Tokens expire after 7, 30 or 90 days, as chosen when they are created, and can be revoked at any time. An agent can have up to 10 active tokens.
  • When using bearer tokens, signature verification and nonce/replay protection are skipped. All other gateway behavior (policy evaluation, rate limits) works identically.

How do I revoke an agent?

Go to Agents, find the agent, and click Revoke. This immediately prevents the agent from making any further requests. Existing pending approvals for the agent remain but cannot be executed (the system checks agent status before executing).

You can also restore a previously revoked agent if needed, or delete it permanently.

What are allowed tools?

Allowed tools is an allowlist of tool/connector names that the agent is permitted to use. If configured, any request for a tool not in the list is immediately blocked by the Gateway.

Examples: http, browser.open, mcp.call_tool, mcp.list_tools

If the list is empty, the agent can use all tools (subject to policy rules).

Agents | AgentLock Docs