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.
go install oscarkilo.com/okg@latest
Or build from source:
git clone https://code.oscarkilo.com/okg
cd okg && go build .
# 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
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]
--repo REPO overrides auto-detected repo name
(normally parsed from git remote get-url origin)--json outputs raw JSON for any commandOKG_REPO env var also overrides repo detectionLike 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"
None beyond the Go standard library.