HTTPS_PROXY so all outbound requests (curl, gh, language HTTP clients) route through the gateway, which injects stored credentials at the proxy boundary.
No onecli CLI installation required. The plugin talks directly to OneCLI Cloud.
If you prefer the CLI wrapper approach, see Coding Agents for
onecli run -- claude.Getting started
Prerequisites
- Claude Code (terminal or desktop app)
- An OneCLI account with at least one connected service
Installation
Install from the Claude Code Directory:- Open Claude Code
- Go to Customize > Directory > Plugins
- Search for OneCLI
- Click Install
Setup
After installation, run the setup command in Claude Code:- Open 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
What the plugin provides
How it works
On every session start, the plugin:- Reads your API key from
~/.onecli/credentials/api-key(or other configured locations) - Calls OneCLI Cloud to get the gateway proxy configuration
- Writes a CA certificate bundle to
~/.onecli/ca-bundle.pem - Exports
HTTPS_PROXYand CA trust environment variables into the session - Injects gateway instructions into the conversation context
HTTPS_PROXY automatically. When Claude runs curl, gh, aws, or any tool that makes HTTPS requests, the traffic routes through gateway.onecli.sh, which injects the right credentials.
Connecting services
When Claude makes a request to a service that isn’t connected, the gateway returns an error with aconnect_url. Claude shows you the link. Click it, authorize the service in your browser, and Claude retries automatically.
You can also connect services from your OneCLI dashboard.
Slash commands
Supported services
The gateway supports 40+ services including:
For the full list with endpoints, see App Connections.
Plugin vs onecli run
Both approaches give Claude Code gateway access. Choose based on your preference:
Troubleshooting
Gateway not active after setup
The plugin configures the proxy at session start. After running/onecli-setup, you need to start a new session for the gateway to activate.
Requests not going through the proxy
Check that the proxy environment variables are exported:HTTPS_PROXY is not set, the session-start hook may have failed. Run /onecli-status to diagnose.
Service returns 401/403
The service may not be connected. Check the error response for aconnect_url and open it in your browser to authorize. After connecting, retry the request.
Policy blocking a request
If you see ablocked_by_policy error, a policy rule in your OneCLI dashboard is blocking the request. Check Rules in the sidebar to review and adjust.