Show HN: OneCLI – OSS credential gateway that keeps secrets out of AI agents
TL;DR Highlight
A gateway injects credentials into requests so AI agents never see the secrets.
Who Should Read
Backend or platform developers worried about internal AI agents holding raw API keys that could leak
Core Mechanics
- Agents never see the keys
- Each agent gets only the access you granted.
- The gateway enforces it on every request.
- A Rust gateway injects keys into requests
- It intercepts outbound HTTPS via MITM.
- Agents authenticate with access tokens in Proxy-Authorization headers.
- Secrets are encrypted and decrypted only on use
- Stored with AES-256-GCM and decrypted at request time only.
- Matched by host and path pattern, injected as headers or query parameters.
- The gateway is the sandbox's only exit
- Each agent has an isolated sandbox with a filesystem and shell.
- It can reach only what you granted.
- v1 vault grew into a team agent platform (v2)
- It started as a Rust credential vault for agents.
- v2 adds per-employee agents, one team policy, and human approvals for things like sending email or deleting tickets.
- Bitwarden and 1Password are supported
- Secrets are injected on demand with nothing stored on the server.
- Apache-2.0, except ee/ directories that need a subscription for production.
Community Reactions
- Great for static keys, but OAuth is missing, one commenter said
- They suggested the gateway handle OAuth client credentials flows.
- Retries on certain failures and short-circuiting were also proposed.
- Seen as an old, proven design that makes leaked fake keys useless
- One comment compared it to DB clients that never hold data and ask a server instead.
- The author of a GitHub-only proxy (gh-proxy) said a leaked fake token is useless to attackers.
- Skeptics say it just swaps one key for another
- One said credentials eventually reach the LLM whatever the abstraction.
- Another said existing SSO (OAuth, SAML, OIDC) is the more mature option.
- Comparisons with alternatives came up
- Someone asked how it compares to agent-vault and clawpatrol.
- varlock.dev was shared: configured via .env.schema, pulling secrets via plugins like Infisical and 1Password.
How to Apply
- Remove real keys from agent environments
- Grep your agent's .env and prompts today for real API keys.
- Swap in fake tokens and design a proxy that replaces them with the real values.
- Run OneCLI locally
- Clone the repo, then run pnpm install and pnpm run setup.
- In the dashboard at localhost:10254, create an agent and a secret and check host-based injection.
- Put human approval on risky actions
- List actions like sending email, deleting tickets, emptying buckets.
- Add an approval step to those requests in the gateway policy.
- Funnel agent egress through one exit
- Allow sandbox outbound traffic only to the gateway.
- Write per-host and path allowlists and apply them.
Try It
# Paste in a terminal: run OneCLI self-hosted locally (from the README Quick Start)
git clone https://github.com/onecli/onecli.git && cd onecli
pnpm install
pnpm run setup
# Then open http://localhost:10254 in a browser to create agents and secrets
# On Kubernetes, use the Helm chart instead
helm install onecli oci://ghcr.io/onecli/charts/onecliTerminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques