Skip to content
Browse the documentation

AgentLock documentation

AgentLock sits between your AI agents and the services they use. Agents send signed requests, AgentLock checks them against your policies, asks a person to approve when a policy requires it, and executes the action with credentials the agent never sees.

How it works

The flow is simple:

  1. Agent sends a signed request — Your agent uses the SDK to send a cryptographically signed action request to the AgentLock Gateway.
  2. Policy evaluation — The Gateway checks the request against your workspace policies. The result is either ALLOW, REQUIRE_APPROVAL, or BLOCK.
  3. Human approval (if required) — If the policy requires approval, a notification is sent to your web dashboard and mobile app. Approvers review the action preview and approve or deny.
  4. Secure execution — Once approved (or auto-allowed), AgentLock executes the action using your encrypted credentials. Secrets are decrypted in-memory, never exposed.
  5. Result & Timeline — The sanitized result is returned to the agent. The action is recorded in your Timeline with optional Undo support.

Quick start

  1. Create an account at app.agentlock.net. The Free plan covers one agent and 100 actions a month.
  2. Register your agent under Agents and keep its private key or create an API token for it, as described in Getting started.
  3. Connect the agent with one of the integrations below.
  4. Decide what the agent may do on its own in policies. Without rules, write actions wait for approval.
  5. Approve or deny requests in the dashboard or in the mobile app.

Integrations

All topics

Get started

  • Getting Started

    What AgentLock is, how a signed agent request flows through policy, approval and execution, and how to register your first agent.

  • SDKs & Integration

    Integrate AI agents with AgentLock: the Node.js SDK, the Python SDK, the MCP server, bearer tokens, the gateway request format and webhooks.

Integrate

  • Node.js SDK

    Install and use agentlock-sdk-node: signed requests, approvals, results, browser and SSH sessions and messaging from Node.js agents.

  • Python SDK

    Install and use the agentlock-sdk Python package to send signed AgentLock requests from Python agents.

  • AgentLock MCP server

    Connect Claude Desktop, Cursor and other MCP clients to AgentLock with the agentlock-mcp-server package or the hosted MCP endpoint.

  • Permission Routing (Hooks)

    Route the tool permissions of Claude Code, Codex CLI, Gemini CLI and OpenCode through AgentLock with hooks, Bash rules and approvals.

  • Agent Messaging

    Agent messaging in AgentLock: threaded messages between AI agents and the people who supervise them.

  • MCP (Model Context Protocol)

    Call tools on MCP servers through AgentLock so agents never hold the MCP server credentials.

Control

  • Policies

    AgentLock policies decide whether an agent action is allowed, needs approval or is blocked: rules, overrides, rate limits and Safe Mode.

  • Approvals

    How human approval of AI agent actions works in AgentLock: two-person approval, approving from the phone, expiry and who may approve.

  • Agents

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

  • Credentials

    How AgentLock stores API keys, passwords and other credentials encrypted, which credential types exist and why agents never see them.

  • SSH Sessions

    Run SSH commands for AI agents through AgentLock with command rules, host-key pinning and approval.

  • Browser Sessions

    Let AI agents use websites through an isolated browser session where AgentLock fills in the logins and the agent never sees them.

  • VPN (WireGuard)

    Reach hosts behind a firewall from AgentLock with WireGuard credentials for SSH, HTTP and MCP traffic.

Observe

  • Dashboard

    The AgentLock dashboard: active agents, pending approvals, monthly action usage, stored credentials and recent actions.

  • Timeline & Undo

    The AgentLock timeline records every executed agent action and lets you undo supported actions.

  • Audit Log

    The AgentLock audit log: an immutable record of every request, decision and execution, with the full list of event types.

  • Monitoring

    Monitor AI agent activity in AgentLock with health cards, charts, a live event feed and automatic alerts.

Account

  • Team Members & Roles

    Invite team members to an AgentLock workspace, assign roles, and suspend or remove members.

  • Plans & Billing

    AgentLock plans and limits: Free, Pro and Team, monthly action quotas, upgrades, downgrades and cancellation.

  • Settings

    Workspace and account settings in AgentLock, including two-factor authentication.

  • Mobile App

    Approve AI agent actions from the AgentLock mobile app for iOS and Android with push notifications and biometric confirmation.

  • Security & Encryption

    How AgentLock encrypts credentials, isolates workspaces, verifies agent requests, blocks SSRF and limits the data it keeps.

  • Data & Privacy Settings

    Control how much data AgentLock stores: retention periods, data export and account deletion.

Reference

  • API reference

    AgentLock REST API reference: Ed25519 request signing, bearer tokens, the gateway endpoints for actions, results, credentials and messages, error codes and rate limits.

  • Error Reference

    HTTP status codes and runner errors returned by the AgentLock gateway, with causes and fixes.

  • Troubleshooting

    Fixes for common AgentLock problems: 401 on signed requests, replay errors, rate limits, missing approvals and MCP connection failures.

AgentLock Documentation: SDKs, MCP server and API