How it works
Four steps. Zero long-lived secrets.Register your agent
User connects their accounts
Your app sends the user to a connect page where they link the services your agent needs. Standard OAuth. They connect once.
Agent receives scoped credentials
Your server calls
kontext.require("github", token) and gets a short-lived access token, scoped to this user and this task.Prerequisites
- A Kontext account
- Node.js 18+
Choose your path
- With your AI agent
- Manual setup
The fastest way. Install the Kontext skill and let your AI coding agent handle the setup.Auto-detects your AI harness (Claude Code, Cursor, Gemini CLI, etc.) and installs to the right location.
1. Install the skill
2. Ask your agent
Tell your agent what you need. It can create applications, configure integrations, and wire up credentials through the Management API. For example:“Add Kontext to my MCP server so it can access GitHub on behalf of users”
“Set up a Kontext application with GitHub and Slack integrations”The skill covers the full lifecycle: Server SDK (Express + MCP), Client SDK (auth flows), Vercel AI SDK adapter, React hooks, Cloudflare Agents, and Management API.
3. Test it
Once your agent has wired everything up, run your app. The first request that needs credentials will trigger the OAuth connect flow for your user.Complete example
Get a scoped GitHub credential and use it to call the GitHub API:Next steps
Server SDK
Build your own MCP server with Kontext credential brokering.
Client SDK
Deep dive into the client SDK — auth flows, tool execution, and storage.
Framework Guides
Use Kontext with Vercel AI SDK, Cloudflare Agents, or React.