Connect an AI agent
Give an AI agent the smallest safe Cronbolt setup.
An agent connects with one project-scoped API key. Cronbolt does not create a separate agent record. The key can manage that project's jobs and runs, but it cannot access another project, account details, or billing.
What the developer does
- Open Settings and select the project.
- Under API keys, choose Create API key.
- Store the copied
CRONBOLT_API_KEYin the agent's secret environment.
Cronbolt verifies the new key before showing it. The full key is shown once.
Preferred: connect with MCP
Add https://api.cronbolt.com/mcp as a Streamable HTTP server. Configure the
project key as an Authorization: Bearer $CRONBOLT_API_KEY header, outside the
prompt and tool arguments. The agent should call get_project_context first,
inspect existing jobs, use a unique idempotency key for mutations, and ask
before delete_job.
See Connect with MCP for the complete tool list and protocol notes.
Direct API workflow
- Read the exact
CRONBOLT_API_KEYvariable from the agent process environment. Never read a key from chat history, source files, logs, or a similarly named variable. - If the variable is missing or empty, stop and ask the developer to add a project API key to the agent's secret environment. Do not ask them to paste it into the conversation.
- Read
/agent.md. - Call
GET /contextwith the environment key before making changes. - Treat the returned project as the authoritative scope. If it is not the intended project, stop and ask the developer to update the environment key.
- Use
GET /jobsto inspect existing state. - Send an
Idempotency-Keywhen creating a job, starting a manual run, or retrying a run. - Ask before deleting a job.
The agent does not need a project ID. The API key supplies that scope for both MCP and direct API access.
Rotate access
Create a new API key, update the agent's secret environment, confirm GET /context,
then revoke the old key in Settings. Revocation takes effect immediately.