Skip to content

Command-line tool

The codebahn binary is the same one you point AI assistants at. Run it without serve and it is a CLI for your pull requests, issues, and CI runs.

Install the binary as described in Connect an AI assistant, then log in:

Terminal window
codebahn auth login

This saves your instance URL and access token to ~/.config/codebahn/config.json (it honors XDG_CONFIG_HOME). Mint the token under your account settings; the scopes are listed in Create an access token. Check the connection any time with codebahn auth status.

To skip the config file, set CODEBAHN_URL and CODEBAHN_TOKEN as environment variables instead. That is how CI authenticates.

Repository commands auto-detect the owner and repo from your git remote. Override with --owner/-o and --repo/-r, add --json for scriptable output, and --no-color to turn off colored output.

CommandDescription
auth loginSave your token to the config file
auth statusVerify the connection
pr listList pull requests
pr view <n>Show a pull request
pr createOpen a pull request
pr merge <n>Merge a pull request
pr diff <n>Print a pull request’s diff
issue listList issues
issue view <n>Show an issue
issue createOpen an issue
issue close <n>Close an issue
issue comment <n>Comment on an issue
run listList CI runs
run view <id>Show a run
run watch <id>Stream a run live
run logs <id>Print build logs
run dispatch <workflow>Trigger a workflow
run cancel <id>Cancel a run
search <query>Search code, repositories, and issues
repo listList your repositories
repo create <name>Create a new repository
serveStart the MCP server

run watch streams progress over Server-Sent Events, so you can follow a build to completion without polling.