GitHub runs

Sessions run on your laptop by default: your own sign-in, no keys, nothing to set up on GitHub. Pick Runs on → GitHub in the composer's session settings when you want the agent to run in GitHub Actions instead. That needs a one-time setup in the repository, done by someone with admin access.

The fastest way: paste the GitHub runs setup prompt into your coding agent from the repository's folder. In Claude Code, once This laptop is set up, /ikanban-github-runs-setup does the same. It checks everything, asks before each change, and never sees your token or key.

What each agent needs

Claude

  1. Install the Claude GitHub App on the repository.
  2. Run claude setup-token (Claude Pro, Max, Team or Enterprise) and save the token as the repository secret CLAUDE_CODE_OAUTH_TOKEN:
    gh secret set CLAUDE_CODE_OAUTH_TOKEN -R <owner>/<repo>
    
    The token works from any machine, like a password for your Claude plan. Never paste it into a chat or a file; if it leaks, make a new one and set it again.
  3. Add iKanban's Claude workflow as .github/workflows/claude.yml. Set up on This laptop puts it in your repository at .iKanban/github/claude.yml.

Antigravity (on GitHub)

  1. Create a key at Google AI Studio and save it as GOOGLE_API_KEY:
    gh secret set GOOGLE_API_KEY -R <owner>/<repo>
    
  2. Add credits in AI Studio → Billing. The free tier for the model the CLI uses is 0.
  3. Add iKanban's workflow as .github/workflows/gemini.yml (from .iKanban/github/gemini.yml). Antigravity has no documented sign-in for CI, so on GitHub the workflow runs Google's Gemini CLI package with this key. It answers iKanban's @gemini issues and an @antigravity comment. Google's own workflow listens for @gemini-cli, so it doesn't react to them.

OpenCode (on GitHub)

  1. Install the OpenCode GitHub App on the repository. The App does the work and answers as itself, so no token of yours is stored.
  2. Add iKanban's workflow as .github/workflows/opencode.yml (from .iKanban/github/opencode.yml). It runs when a comment holds /opencode, which is the App's own trigger word, and iKanban writes that comment when it opens the issue. Its job asks GitHub for an OIDC token (permissions: id-token: write), which is how the App signs in.
  3. Nothing else for a free opencode/* model. For a Kimi or a Qwen model, keep your provider key in Settings → AI provider keys: iKanban seals it to the repository and writes it as the secret IKANBAN_<PROVIDER>_<WORKSPACE> before the run starts. The plain key never travels and never appears in the run log.
  4. A comment from a bot never starts a run. Without that guard the App's own refusal comment carries its run link, the link holds the trigger word, and each refusal starts the next run.

What stops an OpenCode GitHub run, and where you see it

WhatWhere you see itWhere to change it
No provider key for the model's providerthe session card: "The <provider> key could not be written…"Settings → AI provider keys
The project has no linked repositorythe same card, with "An admin links one in Settings, Git connections"Settings → Git connections → Configure
The OpenCode App is not installed on the repositorythe issue is opened, the workflow runs and stops at the App token exchange, and the card reads failed with that reasonInstall the App on that repository, then start the run again
A run of this agent is already on the taskthe follow-up goes to that run's issue instead of a new onefinish or stop the run on the session card
No model pickedthe run uses OpenCode's default modelAgent settings → Git connections → Coding agents → OpenCode model

Who can read the key once it is in the repository. iKanban writes it as a repository secret, and GitHub gives a repository secret to every workflow in that repository, on any branch (Secrets). So anyone with write access can read it by pushing a workflow that uses it — GitHub hides the value in the log, but a workflow can send it anywhere. Treat that key as shared with your repository's writers. Two ways to narrow it: give OpenCode a key of its own, so a leak costs only that key, or move the secret into a GitHub Environment with a required reviewer or a deployment-branch rule, and run the job under that environment. A secret is never passed to a workflow from a fork.

Copilot

Claude and Antigravity: let the workflow open the pull request. A repository admin opens Settings → Actions → General → Workflow permissions, ticks Allow GitHub Actions to create and approve pull requests, and saves. If the box is grey, the organization locks it: an organization owner first ticks the same box under Organization settings → Actions → General → Workflow permissions. Without it the agent's branch is pushed but no pull request opens ("GitHub Actions is not permitted to create or approve pull requests"). If automations should merge the agent's pull requests, also set the repository variable IKANBAN_CI_WORKFLOW to your CI workflow's file name (with a workflow_dispatch trigger), so the pull request gets checks: see Docs → Automations.

Then: merge the workflow files into the default branch. GitHub runs issue workflows only from there.

Check it

Start a session with Runs on → GitHub and the agent you set up: "reply with a one-line summary of this repository; don't change files". The session page links the GitHub issue, then shows Done with the answer.

When a run fails

The session saysFix
The agent pushed a branch but no pull request openedTick Allow GitHub Actions to create and approve pull requests (Settings → Actions → General)
Claude stopped within a second, no answerThe token is missing or expired: run claude setup-token and set the secret again
The repository secret GOOGLE_API_KEY isn't setAdd the Gemini key (above)
Google refused Gemini: credits used up or quota 0Add credits in Google AI Studio → Billing (aistudio.google.com), then try again
Copilot cloud agent isn't enabledAn organization owner turns it on (above)
Nothing happens on the GitHub issueThe workflow isn't on the default branch yet, or Actions are turned off in the repository's settings

Your secrets stay in GitHub. iKanban never reads them, and laptop sessions never use them.