Getting Started
What AgentLock is, how a signed agent request flows through policy, approval and execution, and how to register your first agent.
What is AgentLock?
AgentLock is a security-first approval and execution proxy for AI agents. Instead of giving your AI agents direct access to API keys and passwords, agents send action requests through AgentLock. AgentLock evaluates each request against your security policies, optionally requires human approval, and then executes the action on behalf of the agent using securely stored credentials.
The core principle: Agents never see your secrets. AgentLock acts as the trusted middleman between your AI agents and your APIs/services.
How does AgentLock work?
The flow is simple:
- Agent sends a signed request — Your agent uses the SDK to send a cryptographically signed action request to the AgentLock Gateway.
- Policy evaluation — The Gateway checks the request against your workspace policies. The result is either ALLOW, REQUIRE_APPROVAL, or BLOCK.
- 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.
- Secure execution — Once approved (or auto-allowed), AgentLock executes the action using your encrypted credentials. Secrets are decrypted in-memory, never exposed.
- Result & Timeline — The sanitized result is returned to the agent. The action is recorded in your Timeline with optional Undo support.
How do I set up my first agent?
- Go to Agents in the sidebar and click Register Agent.
- Give your agent a name and select its environment (development, staging, production).
- AgentLock generates a cryptographic keypair. Download the private key — this is the only time it's shown. Store it securely.
- Copy the Agent ID from the agents list.
- Install the SDK in your agent's code:
npm install agentlock-sdk-node(or the Python SDK). - Initialize the SDK with the Agent ID, private key, and your AgentLock gateway URL.
- Send your first action request. If you haven't set up policies yet, write actions will require approval by default.
What are workspaces?
A workspace is your team's isolated environment in AgentLock. All agents, credentials, policies, approvals, and timeline data belong to a workspace. Team members are invited to a workspace with specific roles (Owner, Admin, Approver, Member).
When you first sign up, you create your workspace during onboarding. You can manage your workspace name and settings under Settings.