telexed ~ c / 6acf5291-71fradar:60 · agent_toolLIVE
← back
NO.
#6acf5291
Topic
AGENTS & TOOLS
Source
Hacker News · Show HN AI
Published
2026-04-14 13:26:53
Importance
★ 6/10 — radar 60
`Kontext CLI`: short-lived credential broker for AI coding agents
FIG-0061:1

`Kontext CLI`: short-lived credential broker for AI coding agents

Instead of dumping API keys into .env or chat, it swaps declared placeholders for short-lived, scoped creds and streams every tool call for audit. Clean security model, but Codex support is still pending, so the immediate use case is narrower.

[ KEY POINTS ]
  1. A .env.kontext file maps services like github, stripe, and linear to placeholders, then kontext start --agent claude resolves them at runtime.
  2. For OAuth services it uses OIDC plus RFC 8693 token exchange; for static keys, the backend injects creds directly, so secrets stay memory-only during the session.
  3. Each tool call is logged with action, result, allow status, user, session, and org attribution, which fixes the usual blind spot after handing raw keys to an agent.
  4. The CLI is written in Go, adds about 5ms hook overhead per tool call, talks to the backend over ConnectRPC, and stores auth in the system keyring.
  5. Server-side allow/deny enforcement is not closed yet. Audit exists now; hard policy blocking is the next step.
Originalgithub.com/kontext-dev/kontext-cliRead original →

// related