Connect Claude Code to external APIs without managing credentials. The OneCLI gateway injects stored credentials into outbound requests automatically, so you don't need API keys in your environment or OAuth flows in your terminal.
Once installed, every Claude Code session automatically routes all HTTPS traffic through the OneCLI gateway. When you ask Claude to "check my GitHub PRs", "read my emails", or "list Jira tickets", it makes direct HTTP calls and the gateway handles authentication transparently.
All HTTP clients (curl, gh, gcloud, aws, language libraries) honor the proxy automatically. Policy rules (block, rate limit, manual approval) are enforced at the gateway level.
- Open Claude Code
- Go to Customize → Directory → Plugins
- Search for OneCLI
- Click Install
After installation, run /onecli-setup in Claude Code:
- Open https://app.onecli.sh/projects
- Select your project (or create one)
- Copy your API Key from the Overview page (starts with
oc_) - Paste it when prompted
Start a new session. The gateway activates automatically.
If you already use the onecli CLI, the plugin automatically reuses your existing credentials from ~/.onecli/credentials/api-key.
| Command | Description |
|---|---|
/onecli-setup |
Configure API key and verify gateway connectivity |
/onecli-status |
Show gateway status and connected services |
- At session start, a plugin hook reads your API key, calls OneCLI Cloud, verifies the proxy is reachable, and injects
HTTPS_PROXYand CA certificates into the session (~/.onecli/env.sh, sourced viaBASH_ENV) - All HTTPS traffic then routes through the gateway, which intercepts requests and injects the right credentials (OAuth tokens, API keys, AWS SigV4 signatures)
- If a service isn't connected yet, the gateway returns a
connect_urlthat Claude shows you. Click it, authorize, and Claude retries automatically - The gateway enforces your policy rules (block, rate limit, manual approval) on every request, including CLI tools like
gh - At session end, a cleanup hook removes
~/.onecli/env.shand theBASH_ENVsetting
skills/
gateway/ Core skill: teaches Claude how to use the proxy
providers/ Reference of all 40+ supported services
commands/
setup.md /onecli-setup, first-time API key configuration
status.md /onecli-status, gateway and connection health
agents/
integration-architect.md Helps design multi-service API workflows
hooks/
session-start Auto-configures proxy on every session (built from ../../src/claude)
session-end Cleans up on session end (built from ../../src/claude)
Hook scripts are built artifacts. Edit the TypeScript sources in ../../src/ and run npm run build from the repo root.
- A OneCLI account
- At least one connected service in the OneCLI dashboard
Apache-2.0