Connecting Linear to AgentRail lets you import Linear issues directly into the AgentRail task lifecycle. Once imported, issues go through the routing engine, which evaluates your configured routing rules to assign the task to the right agent. RunDocumentation Index
Fetch the complete documentation index at: https://agentrail.app/docs/llms.txt
Use this file to discover all available pages before exploring further.
agentrail provider connect linear to set this up.
Connect Linear
For non-interactive environments such as CI pipelines, set the
LINEAR_API_KEY environment variable before running the connect command.Import a Linear issue
After connecting, import issues into AgentRail using the identifier, full Linear URL, or UUID:How routing works
Imported issues do not automatically become assigned tasks. They go through AgentRail’s routing engine, which evaluates your configured routing rules to decide which agent should handle the work. To configure routing, runagentrail init and follow the routing setup prompts, or use agentrail agent create to add a routing rule for a specific agent.
Verify the connection
Check the health of your Linear connection:Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
| Imported issue is not assigned | Routing is not configured | Run agentrail init or agentrail agent create to create a routing rule, then reimport. |
401 or credential error | LINEAR_API_KEY is missing or invalid | Confirm the key is set and re-run agentrail provider connect linear. |
| Import command returns no task | Issue already imported or routing failed closed | Check routing config with agentrail doctor and inspect routing audit records. |
.png?fit=max&auto=format&n=TNCV8lxzL1ij3U4N&q=85&s=7345b71aa1c450c74f35b67c2655fc43)