Overview
Autonomous agents pick up Linear issues, work on them in isolated cloud workspaces, and open pull requests - without human intervention. This guide walks you through creating an agent blueprint and triggering your first run.Prerequisites
Before starting, make sure you have:- AI Builder Portal configured - see Admin Setup
- A running Kubernetes cluster on Qovery
- Linear connected to the portal via OAuth - see Linear Integration
- A git repository the agent will work on
- An API key for your chosen AI runtime (Anthropic, OpenAI, or Google)
Create an Agent Blueprint
Navigate to Blueprints
Go to Admin > Blueprints and click Create Blueprint. In the type chooser dialog, select Agent Blueprint.
Choose a Runtime
Select one of the five supported AI runtimes:
Optionally enter the API key for the selected runtime. The key is stored encrypted and injected into the workspace at launch.
| Runtime | Command | API Key Variable |
|---|---|---|
| Claude Code | claude -p | ANTHROPIC_API_KEY |
| OpenCode | opencode run | ANTHROPIC_API_KEY |
| Codex | codex --full-auto | OPENAI_API_KEY |
| Gemini CLI | gemini -p | GEMINI_API_KEY |
| Cursor CLI | cursor-agent | ANTHROPIC_API_KEY |
Configure Repositories
Add one or more git repositories the agent will work on.For each repository:
- URL (required) - the HTTPS clone URL
- Branch - defaults to
main - Token - optional, required for private repositories
Connect to Linear
Configure the Linear integration that drives the agent’s work queue.Required fields:
- Linear Team - the team whose issues the agent will respond to
- In-Progress State - the workflow state the issue transitions to when claimed by the agent
- In-Review State - the workflow state when the agent opens a PR
- Needs-Human State - the workflow state when the agent fails or times out
- Max concurrent runs - how many issues the agent works on simultaneously (default:
3) - Run timeout - maximum duration per run in minutes (default:
60)
The wizard also shows a label field (default:
qovery-agent-ready). This label is stored for organization and display purposes. Triggering happens when users @mention or assign the agent on an issue - not via labels.The wizard uses the official agent template as the base image. For advanced customization - adding project dependencies, custom agent instructions, or setup scripts - see Agent Template.
Trigger Your First Run
- Open your Linear workspace and navigate to the team you configured in the blueprint.
- Open an existing issue or create a new one.
- @mention the agent in a comment, or assign the agent to the issue.
- The agent responds within seconds - a plan with four steps appears directly in the Linear issue.
- The issue automatically transitions to the In-Progress state.
The agent is triggered by @mention or assignment, not by labels. The response is instant - driven by webhooks, not polling.
Monitor the Run
Navigate to Admin > Agents > Runs to watch the agent work. A run progresses through these statuses:- claimed - the agent has picked up the issue and reserved it
- launching - the cloud workspace is being provisioned
- running - the AI runtime is actively working on the issue
- pr_opened - the agent opened a pull request (success)
- failed - the agent encountered an error
- timed_out - the run exceeded the configured timeout
What Happens Under the Hood
Next Steps
Agent Blueprints
Deep dive on agent blueprint configuration, runtimes, and resource tuning.
Managing Runs
Monitor active runs, review logs, and handle failures.
Linear Integration
Configure the issue flow, labels, and workflow state mapping.