Skip to content
Tech News
← Back to articles

Show HN: Kontext CLI – Credential broker for AI coding agents in Go

read original get Go Programming Language Book → more articles
Why This Matters

Kontext CLI introduces a secure, efficient way for AI coding agents to access necessary credentials without storing sensitive keys long-term. By automating credential management and providing audit logs, it enhances security and governance for development teams working with AI tools. This innovation addresses the industry's need for safer, more compliant credential handling in AI-driven workflows.

Key Takeaways

Kontext CLI Store Credentials. Inject At Runtime. Agents Never Store The Keys. Website · Documentation · Discord

What is Kontext CLI?

Kontext CLI is an open-source command-line tool that wraps AI coding agents with enterprise-grade identity, credential management, and governance — without changing how developers work.

Why we built it: AI coding agents need access to GitHub, Stripe, databases, and dozens of other services. Today, teams copy-paste long-lived API keys into .env files and hope for the best. Kontext replaces that with short-lived, scoped credentials that are injected at session start and gone when the session ends. Every tool call is logged. Every secret is accounted for.

How it works: You declare what credentials your project needs in a single .env.kontext file. When you run kontext start , the CLI authenticates you, exchanges placeholders for short-lived tokens via RFC 8693 token exchange, launches your agent with those credentials injected, and streams every tool call to the Kontext dashboard for audit and governance. When the session ends, credentials expire automatically.

Quick Start

brew install kontext-dev/tap/kontext

If you prefer a direct binary install, download the latest GitHub Release instead:

tmpdir= " $( mktemp -d ) " \ && gh release download --repo kontext-dev/kontext-cli --pattern ' kontext_*_darwin_arm64.tar.gz ' --dir " $tmpdir " \ && archive= " $( find " $tmpdir " -maxdepth 1 -name ' kontext_*_darwin_arm64.tar.gz ' -print -quit ) " \ && tar -xzf " $archive " -C " $tmpdir " \ && sudo install -m 0755 " $tmpdir /kontext " /usr/local/bin/kontext

Then, from any project directory with Claude Code installed:

... continue reading