| title | DevIntern Code Quick Start | ||||||
|---|---|---|---|---|---|---|---|
| sidebarLabel | Quick Start | ||||||
| description | Use when installing DevIntern Code for the first time: set up a worker that turns ready tracker tickets into pull requests, or run one task by hand. | ||||||
| section | Automation | ||||||
| order | 0 | ||||||
| dateModified | 2026-12-01 | ||||||
| tags |
|
DevIntern Code runs your AI coding agent on tickets from Jira, Linear, Trello, Asana, Azure DevOps, GitHub Issues, or GitLab Issues, or on local markdown files. It creates a feature branch, commits the changes, and opens a pull request.
The recommended setup is a worker: a background service that picks up ready tickets, opens PRs, and follows up on review comments. It suits one repository as well as many. To try a single task by hand first, see Run one task by hand.
Prefer to set up from a chat? Install the devintern-setup skill and ask your coding agent to do it.
- A Linux or macOS machine that will run the worker, with
git. For a VPS or cloud VM, see Run DevIntern on a Cloud VM - A clone of your project's repository on that machine
- A task tracker account with API access, or a folder of markdown tasks
- A token for your source-control host so the worker can push and open PRs. For GitHub, see GitHub authentication; a signed-in GitHub CLI (
gh) is reused whenGITHUB_TOKENis unset
Install DevIntern Code with one command:
curl -fsSL https://devintern.com/install.sh | shThe script installs Bun if it is missing, installs @getdevintern/code globally, adds ~/.bun/bin to your shell profile, and prints the installed version. It is safe to re-run and upgrades DevIntern to the latest version. As root it installs missing system packages such as unzip; otherwise it prints the sudo command and stops. It never runs sudo itself. Set DEVINTERN_VERSION to install a specific version, or DEVINTERN_NO_MODIFY_PATH=1 to leave your shell profile alone.
Then install and sign in to a coding agent:
curl -fsSL https://claude.ai/install.sh | bash # Claude Code, the default agent
claude # sign in once, then exitInstall Bun. On Debian and Ubuntu, the Bun installer needs unzip:
sudo apt-get install -y unzip # Debian/Ubuntu only
curl -fsSL https://bun.sh/install | bashThe installer adds ~/.bun/bin to your shell profile, which only takes effect in a new shell. Open a new terminal, or run exec $SHELL -l. Then install DevIntern and a coding agent:
bun install -g @getdevintern/code
curl -fsSL https://claude.ai/install.sh | bash # Claude Code, the default agent
claude # sign in once, then exitdevintern --version confirms the install. To use Codex, Cursor, OpenCode, or another agent instead, install and sign in to its CLI and see Agent Harness.
In your project's checkout:
devintern initIn a checkout that is not set up yet, it first asks how you want to run tickets. Choose 1) Automatically with a worker (the default) to start the worker setup; devintern worker init opens the same wizard directly. If you already set the repository up for manual runs, run devintern worker init here instead: it reuses the tracker settings it saved and turns the manual-only entry into a worker repository. The wizard first checks this machine: the agent CLI from step 1, git, and whether a background service can be installed. If the agent CLI or git is missing, it tells you right away how to install it, and you can continue anyway or stop. It then asks for:
- Your tracker and its token. It links to the page where you create the token and checks the connection.
- The ready-tasks query: which tickets the worker picks up. Press Enter to pick up open tickets labeled
devintern(for exampleis:open label:devinternon GitHub Issues), or type your own query; keep it narrow at first. On GitHub and GitLab it offers to create thedevinternlabel if it is missing. - Nothing about worker settings: a new workspace gets the recommended ones (no CI repair, automatic conflict resolution, task pickup at any hour, no Sentry project). Change them in
~/.devintern/workspace.toml, or rundevintern worker init --customizeto choose each one and add a Sentry project. - "Sign in with GitHub to start your 14-day Worker Pilot": one question that starts the 14-day free Worker Pilot (no card required) and pairs the relay, so PR reviews reach the worker in seconds. For a GitHub repository it opens the DevIntern AI App install page and waits for you to approve it. Press Enter during either wait to skip;
devintern worker login githubsigns you in later, anddevintern worker connect github --statusfinishes an App approval you gave after skipping. To sign in with Google, X or email instead, skip the step and rundevintern worker login <method>. You are not asked when you are already signed in or have aLICENSE_KEY. Add--no-relayto keep polling only. - Installing the background service (step 3 below).
Your answers are saved in ~/.devintern/; nothing is written into your checkout. Re-run devintern worker init at any time: it keeps your answers as defaults and finishes a setup that stopped partway, including one you stopped with Ctrl+C.
No tracker account yet? Choose Markdown files. Tasks are read from a folder and need no credentials; setup creates the folder if it does not exist yet. See Markdown File Tasks.
If you skipped the wizard's last step, install the service now:
devintern worker service installIt runs the worker doctor checks, installs a systemd user service (Linux) or launchd agent (macOS), starts it, and waits until the worker is running. It then prints the dashboard address. On a host without a background service (most containers and WSL without systemd) it says so and exits 1; run devintern worker in tmux or screen instead. If a check fails, it lists the fix and installs nothing.
From then on the worker polls your tracker every 60 seconds for tickets that match your query. On Linux, run sudo loginctl enable-linger $USER once so the worker keeps running after you log out and starts at boot; service install warns you when this is needed.
When the wizard has started the worker, it ends with one more question: "Create a sample ticket so you can watch the first run? [Y/n]". The sample is a small docs-only task (add a short note to CONTRIBUTING.md) whose title says it is a DevIntern sample:
| Tracker | What the wizard creates |
|---|---|
| GitHub, GitLab | An issue with the labels your query selects on (label:devintern). On GitHub, an ad-hoc task instead when the repository you registered is not GITHUB_REPO |
| Markdown | A task file in your tasks folder (setup creates the folder) with the fields your query filters on (status=todo) |
| Any other tracker | An ad-hoc task queued with devintern worker add; no ticket |
It then waits up to two minutes for the worker to start the task and prints the dashboard link to the run. Answer n and nothing is created. If your query selects on something setup cannot set (an assignee, a milestone), the wizard tells you to make the ticket match it yourself. worker init --non-interactive never creates a sample; it lists the command as the optional try-first-task next step, which worker doctor --json and worker login --complete --json also return once setup is ready.
To try your own ticket, make it match your query, for example by adding the devintern label to a GitHub issue. Within a minute or two the worker picks it up. Follow it in:
- The dashboard at
http://localhost:4400. On a remote machine, forward it first:ssh -L 4400:127.0.0.1:4400 you@host devintern worker runsfor the run list, anddevintern worker logs --level warnfor problemsdevintern worker prsfor the pull requests it opened
The run checks the ticket is clear enough, implements it, and opens a PR. Review the PR and leave comments; the worker pushes follow-up commits to the same branch. A ticket that is too vague gets questions on the tracker instead of a PR.
Nothing picked up after a few minutes? Run devintern doctor in the checkout (in a worker repository it runs the devintern worker doctor checks) and see Worker Troubleshooting.
To try one task without a worker, run devintern init in your checkout and choose 2) By hand from this terminal. Interactive runs are free and need no sign-in.
devintern init # choose 2, then connect a tracker or choose Markdown files
devintern doctor # check that everything is wired upThen run a task. With a tracker, pass the task reference. With Markdown, add TASK-1.md to your task folder and pass its name without the extension:
devintern PROJ-123 --create-pr
devintern TASK-1devintern init saves your answers to ~/.devintern/env/<repo>.env and registers the repository as manual-only, so a worker skips it. To hand it to a worker later, run devintern worker init in the checkout: it reuses those settings and turns the repository into a worker repository.
- Worker: options, readiness checks, service management, and licenses.
- Open the guide for your tracker: Jira, Linear, Trello, Asana, Azure DevOps, GitHub Issues, or GitLab.
- Workspaces: add more repositories and teams to the same worker.
- CLI reference: flags, batch queries, and git behavior.
- Reporting Bugs: if a failure looks like a DevIntern defect,
devintern reportfiles a redacted report.