Examples

Step-by-step tutorials.

Every Keystore integration method, explained with working code.

Difficulty
Method
Service
beginnerinterceptAll

Intercept All Fetch Calls: Build a Multi-Provider Agent

Use interceptAll() to transparently route OpenAI and Anthropic requests through the Keystore vault. The simplest integration path — zero SDK changes required.

openaianthropic
3 min read
beginnerwrap

Wrap a Client: OpenAI Chatbot with Budget Controls

Use ks.wrap() to proxy a single OpenAI client through the vault. Build a multi-turn chatbot with dashboard-configured budget enforcement.

openai
2 min read
intermediatesetupEnv

Framework Integration: LangChain RAG Pipeline with setupEnv

Use setupEnv() to rewrite environment variables so LangChain automatically resolves keys from the Keystore vault. Zero framework code changes.

openaianthropic
3 min read
intermediatewrapProvider

Database Access: AI Agent with Neon Postgres

Use wrapNeon() for secure database queries and interceptAll() for OpenAI. Build an agent that reads data, summarizes with GPT, and writes results back.

openaineon
3 min read
beginneropenclaw

OpenClaw: Give Any Agent API Access With Just a System Prompt

Zero-SDK integration. Paste proxy URLs and a ks_ token into your agent's system prompt — any framework, any language. Works with OpenAI, Anthropic, Resend, and more.

openaianthropicresend
3 min read
beginnerwrap

Agent-Powered Email Notifications with Resend and Keystore

Use ks.wrap() for both OpenAI and Resend clients. Build an anomaly detection agent that analyzes data and sends email alerts — all keys from the vault.

openairesend
3 min read
intermediatewrapProvider

Secure S3 File Uploads from AI Agents

Use wrapS3() to route S3 operations through the Keystore vault. Generate reports with OpenAI and upload to S3 — your agent never sees AWS credentials.

openais3
3 min read
advancedinterceptAll

Production Agent Setup: Rate Limits, Budgets, and Webhooks

Configure per-agent rate limits and monthly budgets in the dashboard. Set up a webhook receiver for budget alerts and handle 429 errors gracefully.

openaianthropic
5 min read