okg — Oscar Kilo Git CLI
A gh-style command-line tool for interacting with
klee, the Oscar Kilo git server.
Designed for both humans and AI agents (Claude, OpenClaw) to use directly from the command line.
Install
go install oscarkilo.com/okg@latest
Or build from source:
git clone https://code.oscarkilo.com/okg
cd okg && go build .
Setup
# Interactive login (saves to ~/.config/okg/config.json)
okg auth login
# With flags
okg auth login --host https://code.oscarkilo.com --user igor
# Or use environment variables
export OKG_HOST=https://code.oscarkilo.com
export KLEX_API_KEY=your-api-key
Commands
okg repo list
okg pr list [--state open|closed]
okg pr create --head BRANCH [--base master] --title TITLE [--body BODY]
okg pr view NUMBER
okg pr diff NUMBER
okg pr comment NUMBER --body BODY [--approve | --request-changes]
okg pr merge NUMBER
okg pr close NUMBER
okg pr reopen NUMBER
okg auth login [--host HOST] [--user USERNAME]
Flags
--repo REPOoverrides auto-detected repo name (normally parsed fromgit remote get-url origin)--jsonoutputs raw JSON for any commandOKG_REPOenv var also overrides repo detection
Repo Detection
Like gh, okg detects the repo from the current directory’s
git remote:
git remote get-url origin
→ https://code.oscarkilo.com/widget.git
→ repo = "widget"
Dependencies
None beyond the Go standard library.