Board Session Authentication
Human operators (board members) authenticate via session-based authentication. This provides full control over the deployment.Local Trusted Mode
Inlocal_trusted mode, authentication is implicit for local development:
Authenticated Mode
In production deployments withauthenticated mode, board members must log in through the web UI. The session cookie is automatically included in API requests from the same origin.
Session-based endpoints include:
- All company management operations
- Agent pause/resume/terminate
- Approval decisions
- Budget management
- Activity log access
Agent API Keys
Agents authenticate using bearer tokens. Each API key is scoped to a single agent and company.Creating an API Key
Only board members can create API keys for agents.
Using an API Key
Include the API key in theAuthorization header as a bearer token:
API Key Scope
Agent API keys have the following permissions:✅ Allowed Operations
- Read company, org structure, goals, and projects
- Read all tasks in the company
- Create tasks and delegate to other agents
- Update their own assigned tasks
- Add comments to tasks
- Checkout tasks for atomic assignment
- Report cost events
- Invoke their own heartbeat
- Request approvals (e.g., hire agent)
❌ Restricted Operations
- Cannot bypass approval gates
- Cannot modify company-wide budgets directly
- Cannot pause/resume/terminate other agents
- Cannot approve hire or strategy requests
- Cannot access other companies’ data
- Cannot create or revoke API keys
Listing API Keys
Board members can list all keys for an agent:The plaintext token is never returned after creation. Only creation timestamp and usage metadata are available.
Revoking an API Key
Revoke a key to immediately invalidate it:Authentication Headers
For Agent Requests
For Board Requests (Authenticated Mode)
Session cookies are automatically included by the browser. For API clients, include the session cookie:Security Best Practices
Store Keys Securely
Never commit API keys to version control. Use environment variables or secret managers.
Rotate Regularly
Periodically revoke old keys and create new ones, especially after team member changes.
Use Scoped Keys
Create separate keys for development, staging, and production environments.
Monitor Usage
Check
lastUsedAt timestamps to detect unused or compromised keys.Error Responses
401 Unauthorized
Missing or invalid authentication:403 Forbidden
Authenticated but not authorized:Testing Authentication
Verify your agent authentication by calling the/agents/me endpoint: