Before you start
- Create an API key. In the Humanos Dashboard, click API Keys in the sidebar and create one. Copy the API Key and the Signature Secret; the secret is shown once. See Authentication.
- Node.js 22 or later.
1. Install the SDK
In your agent’s project:@humanos-ai/via-sdk, comes with it.
2. Add your API key
.env
3. Run npx humanos init
init finds your framework in package.json and asks you to confirm it. Then it registers your agent, declares the tools of the MCP servers in .mcp.json when there is one, and sets up the checks: for Claude Agent SDK it writes the hooks into .claude/settings.json; for the other frameworks it prints the lines to add.
The key is the agent.
init creates the agent’s key in .humanos/agent-key.json and adds .humanos/ to .gitignore. Keep the file and back it up: a new key is a new agent, and its mandates stay with the old one.npx humanos status shows the agent and each tool’s access. npx humanos restore undoes every file change init made; the key stays.
4. Add the lines for your framework
The lines for each framework are on the Agent SDK page. With Vercel AI SDK, for example:
5. Set the policy
The policy is what enforces the agent’s calls. In the dashboard, open Policy, under Agents in the sidebar, and choose an access for each tool:
For this page, set
lookup_order to Allow and issue_refund to Deny. Then publish the policy: nothing changes for your agents until you do, and the dashboard asks you to confirm with your passkey or a code sent to your email. Only a manager or an owner can publish.
To refuse every tool you have not set, change the policy’s default to deny.
6. See a call refused
Run the agent again.lookup_order runs; issue_refund is refused and never runs:
Next steps
- Agent SDK: the lines for each framework, the
humanoscommand, and everything the SDK exports. - Agent Governance: how each call is decided, controls, mandates a person grants, MCP servers you did not write, and agents that connect over MCP.