AI Agents Set Up Coding Agents

Set up coding agents

iKanban works with any coding agent you run from your terminal through its MCP server. Six are built in: Claude, Copilot, Antigravity, Codex, OpenCode and Grok. They run on your laptop, in your repository, with your own sign-in to each agent; Claude, Copilot and Antigravity also run on GitHub (Coding agents). You don’t create API keys or add GitHub secrets.

Set up once per laptop, in the iKanban desktop app. Sessions you start from the web app, the desktop app or Slack all run there.

Let your coding agent do it: Agent settings → Git connections → Coding agents → Copy setup prompt, then paste it into Claude Code, Codex or any coding agent from your repository’s folder. It walks through every step below and asks before installing anything. The same prompt is on Agent Setup Prompt. In Claude Code, once This laptop is set up, run /ikanban-agent-setup.

Agents open pull requests on GitHub, so iKanban needs your repository.

  1. Open Agent settings → Git connections → GitHub → Connect and sign in to GitHub in the popup. If the repository belongs to an organization, click Grant next to it before Authorize. Without that, GitHub hides the organization’s private repositories. If you see Request, an organization owner must approve iKanban.
  2. In the same dialog, Configure lists each team’s projects. Click Link next to the project agents work in and pick the repository.

The row shows Needs reconnecting when GitHub has rejected the connection. Click Reconnect.

2. Set up this laptop

In the iKanban desktop app, open Agent settings → Git connections → This laptop → Set up:

  1. Repository folder: choose your clone of the repository.
  2. Where its work is tracked: pick your team and project.
  3. Optional: tick Add two lines to this repository’s AGENTS.md so Codex finds the iKanban setup prompt. AGENTS.md is your file, so this stays off unless you tick it.
  4. Set up and start.

The app then:

  • writes a .iKanban/ folder into the repository: settings with a new key for this laptop, your team’s IDs, and the iKanban skills and prompts;
  • keeps the private files out of git;
  • links the skills into .claude/skills so Claude Code finds them (on Windows it copies them);
  • starts the runner, the part of the app that picks up agent sessions and runs them here.

The app starts the runner again every time it opens. Once a day it also refreshes the README, skills, prompts, runbooks and templates in .iKanban/ from the web app’s /kit/ (dev.i-kanban.com for the dev app, i-kanban.com for the app), so a kit change reaches your laptop within a day of its web deploy, with no app update. It trusts /kit/manifest.json only when its signature checks out against the key built into the app for that site, the signed manifest names that site, and it is not older than the app’s own kit or the last one taken. Only iKanban’s deploy from main signs it; a web build without the signature (a test build, for example) is ignored, and the app keeps its own kit. It takes a file only when its sha256 matches the signed manifest, sends no key, and keeps the app’s own copy of any other file. When the web app can’t be reached, it uses the app’s own kit every two weeks and after you update the app. Hooks and other code in the kit change only with an app update. It rewrites only the files whose content changed, and the row then shows Kit up to date: 1b4c58a1 (checked Oct 28) or Kit updated Oct 28 to 1b4c58a1: N files changed — review and commit them, with the web build’s commit and the date of that refresh (no commit when the app’s own kit was used). It never touches your key or team settings, and it skips a folder that holds the kit’s own source (a .iKanban/KIT-SOURCE file), where Set up stops with the reason kit source. The row shows runner online while it runs. If the app is closed, sessions wait as Queued and start when you open it.

3. Sign in to Claude Code

Claude runs with your Claude Code sign-in, under your Claude subscription.

  1. Open a terminal. The iKanban terminal (the panel at the bottom of the desktop app) works.
  2. Run claude auth login and finish signing in in the browser.
  3. Check it: claude auth status --text says you’re logged in.

Do this once. The runner uses this sign-in for every Claude session.

Optional: a one-year token. A Claude CLI sign-in can expire, and runner sessions then fail until you sign in again. To avoid that, save a one-year token for the runner:

  1. In the desktop app, open Agent settings → Git connections. In the Coding agents card, under Claude one-year token, click Get a token. The terminal runs claude setup-token; finish it in the browser. It needs a Claude Pro, Max, Team or Enterprise plan.
  2. Copy the token from the terminal, paste it into the field and click Save. The row then reads saved · with the token’s first and last characters. The eye asks first, then shows the whole token on this laptop, and hides it again. Each person saves their own token: it is not shared.

The token stays in a file in the iKanban app’s data folder that only you can read, and is never sent to iKanban. A token an older version kept in the keychain moves there once, so updates no longer ask for your password. On Windows the file is in your local app data folder, protected by your user account’s folder permissions. The runner gives it only to its Claude sessions, as CLAUDE_CODE_OAUTH_TOKEN. Your own Claude CLI and Claude app keep their own sign-in. Click Remove to go back to the CLI sign-in. After a year, get a new token and save it again.

GitHub runs too. With a token saved, the row shows Use for GitHub runs too. Check the repository (it starts as the session’s linked repo, as owner/name) and click Set on GitHub. The app sets the repository secret CLAUDE_CODE_OAUTH_TOKEN with your own GitHub CLI sign-in (gh auth login, admin rights on the repository). The token goes from this laptop to GitHub, never through iKanban. The row then reads set on owner/name and the date. After you save a new token, click Set again. The iKanban AI chat does not use the token: it runs on iKanban’s servers and uses AI provider keys.

4. Sign in to Copilot and Antigravity

They run on your laptop the same way, with your own sign-in:

  • Copilot: run copilot login and approve the device on GitHub. This needs a GitHub Copilot plan.
  • Antigravity is Google’s coding agent. iKanban runs it with Google’s Antigravity CLI (agy), which replaced Gemini CLI for personal Google accounts.
    1. Install it: curl -fsSL https://antigravity.google/cli/install.sh | bash.
    2. Run agy once and sign in with a personal Google account. A company (Google Workspace) account needs extra Google Cloud setup.
    3. Antigravity can’t ask for approval mid-run, so it only runs the commands its rules allow. Set up (step 2) adds safe ones: reading files, git status/diff/log, and test, lint and build. It blocks git push, rm -rf and sudo.

Agent settings → Git connections → Coding agents in the desktop app shows each agent as Connected once it’s signed in and the runner is online. Sign in next to an agent opens the iKanban terminal with the command typed. The web app can’t see each agent’s sign-in, so there it shows Runner online · sign-in checked in the desktop app. Agent settings → Overview lists the same agents, one row each.

If the runner is offline, a session waits until it’s back; it never moves to GitHub on its own. To run on GitHub instead, pick Runs on → GitHub (Copilot then uses GitHub’s Copilot cloud agent, which an organization owner enables for the repository).

Approvals and hands-off runs

File edits always run on their own. What happens to a push or a network call on your laptop is your choice, in Agent settings → Runners → Risky actions. It applies from the next run. A new session’s Session settings → Policy shows the choice that applies to it.

ChoiceWhat the agent may do without asking
Ask me (default)Nothing risky. Pushes and network calls wait for your Approve or Deny on the session page.
Allow pull requests (recommended)Push its own branch and open the pull request. Pushing to main, force pushes, merging and other network calls stay blocked; your repository’s checks decide the merge.
Allow everything (Yolo)Any push or network call. Fully hands-off, but an agent misled by text in a repository or a web page can reach any site and push anywhere it has access.
DenyPushes and network calls are blocked. The agent works locally.

A session waiting for you shows Needs approval in the Sessions list; open it to answer. The session page header shows the same state as its row in the Sessions list, and both change within about 5 seconds when the session ends, with no reload.

Runs on GitHub have no approval step. The agent opens a pull request, often as a draft, and your repository’s own workflows review, test and merge it. GitHub’s Copilot agent also asks the person who assigned it for a review; that request does not block a merge.

The runner commits with this laptop’s git identity. If your global identity is a personal one, set the one you want for the runner’s work before you start.

Set up each fresh copy of your repository

The runner clones your repository fresh for each session, and installs nothing. If your tests need dependencies, list the setup steps in .iKanban/runner-setup.json in the repository:

{ "steps": [ { "dir": "web", "run": ["pnpm", "install", "--frozen-lockfile"] } ] }

The runner runs the steps after the clone, before the check critic and the agent start.

  • Only dependency installs: pnpm install, npm ci, npm install, yarn install, bun install, cargo fetch, cargo build, uv sync, pip install, go mod download, bundle install or poetry install. Further arguments must be flags or paths inside the repository. Anything else is refused, and the activity says why.
  • No shell: run is the command and its arguments, so &&, ; and | are plain text. dir is a folder inside the repository, and a symlink out of it is refused (leave dir out for the top folder).
  • Your keys stay out: the runner’s iKanban key is not in the step’s environment.
  • Risky actions → deny skips setup, because installing needs the network.
  • At most 10 steps, and each stops after 10 minutes. A package’s own install scripts still run, as they do when you install on your laptop.

The session’s activity shows each step: “Setup: ran pnpm install --frozen-lockfile in web (42 s)”, or why it failed or was skipped. A failed step does not stop the session. A follow-up reuses the first session’s folder and runs no setup. No file: no setup.

Keep the laptop awake

A laptop that goes to sleep stops its runner, and a job it was running is lost.

  • While a job runs, the runner stops the laptop from going to sleep when idle. This needs no setting and no admin rights. On a Mac, pmset -g assertions lists it as iKanban runner: a job is running while the job lasts; on Windows, powercfg /requests lists the power requests apps hold. It ends with the job. On Linux the runner does not hold the laptop awake: set your desktop’s power settings to not suspend while a job runs.
  • Closing the lid, the Apple menu’s Sleep, or a low battery still put the laptop to sleep. Between jobs it sleeps as usual, and new sessions wait as Queued until it wakes.
  • To keep it awake even with the lid closed: in the desktop app, Agent settings → Runners → This laptop → Keep this laptop awake → Turn on. The app offers this once, the first time you open the runner card. It asks once for admin rights (your password on a Mac, an admin prompt on Windows). A Mac then never sleeps (pmset -a disablesleep 1); on Windows, closing the lid does nothing and the runner also keeps the laptop awake between jobs. This setting is for macOS and Windows only.
  • It stays on when iKanban is closed or deleted, until you turn it off. A closed laptop in a bag gets hot and drains its battery.
  • Turn off asks for admin rights again and restores the setting you had before. If the app is already deleted, run sudo pmset -a disablesleep 0 on a Mac, or set Control Panel → Power Options → Choose what closing the lid does back on Windows.

Runs at once

The desktop app shows Agent settings → Runners → This laptop → This laptop can run N at once, with a number you pick from 1 to N.

  • N is an estimate. The runner works it out from this laptop’s memory, cores and free disk. The ? next to the title shows the readings. It is never above what the laptop can hold, so you cannot pick more than N.
  • The number you pick is how many tasks the runner takes at the same time. A new laptop starts at 1.
  • To keep the laptop free for your own work, lower the number. The runner reads it before it takes the next task, so there is no restart.
  • A lower number never stops a task that is running. Running tasks finish; the runner takes a new one only when fewer than your number are running.
  • It is per laptop. Each laptop keeps its own number. It does not change automation limits or what other people’s runners take.

Dev API check key

Only when your team’s Agent settings → Pipelines → Deploy check card has a Dev API address. After a deploy that contains the task’s merge commit passes (the iKanban GitHub App on the repository records it), the runner that built the task calls the plan’s GET and HEAD API checks there.

  • IKANBAN_DEV_CHECK_TOKEN: your own key for your dev API. The runner sends it only as a Bearer header, never to iKanban, and hides it in every line it sends.
  • IKANBAN_DEV_CHECK_ORIGIN: the exact origin the key may go to, for example https://dev-api.example.com. It must equal the Dev API address. Otherwise the runner calls without the key and says so in the task’s activity.
  • Where to set them: the desktop app starts the runner through your login shell on a Mac and Linux. Add both export lines to ~/.zprofile (zsh) or ~/.bash_profile / ~/.profile (bash), then quit and reopen the app. On Windows, set them as user environment variables, then reopen the app.
  • Without them the checks still run; a 401 or 403 then reads needs a dev key, not a risk.

Check it works

  1. Start a session with a small read-only task, for example “read README.md and reply with a one-line summary; don’t change files”. Start it from the agent home, or with @iKanban in Slack.
  2. The session page shows Claude’s steps live: files read, commands run, then the answer. In Slack, the thread shows the same progress, then the answer.
  3. If it says Failed, the reason appears under the activity card. Fix the step it names and try again.

Troubleshooting

What you seeFix
Session stays QueuedOpen the iKanban desktop app on the laptop set up in step 2. Git connections → This laptop should say runner online.
The laptop is slow while the runner worksSee Runs at once: pick a lower number. Running tasks finish first.
A session failed or waited while the laptop sleptSee Keep the laptop awake: turn on Keep this laptop awake to keep it awake with the lid closed.
This laptop says runner not runningOpen it and click Start runner. The log is ~/Library/Logs/com.verbodh.ikanban/runner.log on a Mac, %LOCALAPPDATA%\com.verbodh.ikanban\logs\runner.log on Windows, ~/.local/share/com.verbodh.ikanban/logs/runner.log on Linux.
Claude fails with a sign-in or authentication errorStep 3: run claude auth login on that laptop. With a saved one-year token, the token has expired or was revoked: get a new one and save it again.
GitHub said “Not Found” for owner/repoStep 1: reconnect GitHub and Grant the organization, or link the right repository.
No repository linkedStep 1: Link a repository to the session’s project.
Copilot or Antigravity fails with a sign-in errorStep 4: run copilot login, or agy and sign in with a personal Google account, on that laptop.
Antigravity says actions were blockedAntigravity’s rules allow only safe commands (step 4).
Every Antigravity tool fails with “failed to unmarshal result from hook”A plugin’s hook is broken: agy plugin list, then agy plugin disable <plugin>.

This laptop needs the iKanban desktop app for macOS, Windows or Linux (AppImage or .deb, x64).

Next: Coding Agents for assigning agents from a task, and Agent Lifecycle for what each status means.