Show HN: OneCLI – Vault for AI Agents in Rust
TL;DR Highlight
Agents get fake keys while a Rust gateway injects real credentials, open source
Who Should Read
Backend or platform developers uneasy about handing API keys to autonomous agents
Core Mechanics
- OneCLI began as a Rust secret vault
- It started as a credential vault for AI agents.
- Most demand came from individuals and teams running autonomous agents like Hermes, OpenClaw and NanoClaw.
- v2 is an agent harness for teams
- Each employee gets a personal agent running in a sandbox.
- You chat via dashboard or Slack, and agents are provisioned from the company IdP identity.
- A gateway injects keys mid-request
- The Rust gateway intercepts outbound requests (HTTPS via MITM) and injects credentials.
- Agents authenticate with access tokens in the Proxy-Authorization header.
- The gateway is the sandbox's only exit
- Agents reach only what you granted.
- Policy is managed in one place and applies to every agent.
- Secrets are encrypted and decrypted per request
- Stored with AES-256-GCM and decrypted only at request time.
- Matched by host and path pattern, injected as headers or query parameters.
- Risky actions need human approval
- Deterministic approval steps happen in the chat itself.
- Examples: sending email, deleting a Linear ticket, emptying an S3 bucket.
Community Reactions
- Opinion that proxy-based key hiding isn't new
- Commenters pointed to fly.io's tokenizer and BuzzFeed's SSO proxy.
- Tokenizer is described as stateless, with no database or dashboard.
- Experience: pitfalls from building a similar system
- The Airut author said Node poorly respects HTTP_PROXY.
- AWS keys can't be swapped simply and need SigV4/SigV4A re-signing.
- The proxy must run outside the agent sandbox, in a separate container.
- Counterargument: hiding keys doesn't stop prompt injection
- Several said an injected agent can still abuse services with fake keys.
- Others noted a leaked fake key or proxy token can't be distinguished by the gateway.
- A sidecar authenticating via mTLS was proposed as an alternative.
- Opinion that existing tools suffice
- One shared using HashiCorp Vault with skill scripts and time-limited expiry.
- Others mentioned AWS STS temporary credentials and short-lived derived tokens revoked on task completion.
How to Apply
- Audit long-lived keys in agent environments
- Today, grep the agent sandbox's env vars, configs and logs for plaintext API keys.
- Reduce their scope or replace them with short-lived tokens.
- Put agents behind a proxy in a separate container
- Run the key-injecting proxy outside the agent's execution environment.
- Test proxy behavior first for runtimes like Node that ignore HTTP_PROXY.
- Add human approval to irreversible actions
- Block email sending, deletion and payment tool calls without approval.
- Hiding keys doesn't stop calls, so narrow the allowed calls too.
- Run OneCLI locally
- Clone the repo, then run pnpm install and pnpm run setup.
- Open http://localhost:10254 and connect one agent to one secret.
Try It
# Paste into Claude or ChatGPT (simplified review version of the article's idea: keep keys away from agents)
Below is a description of our agent system. Review it for credential exposure.
[System description]
{{agent architecture, tools used, how keys are stored and passed}}
Answer in this order.
1. Paths where the agent can see plaintext keys (env vars, logs, memory files, prompts)
2. Changes needed so a gateway/proxy injects keys at request time
3. Risks that remain even with hidden keys (abusing legitimate APIs via prompt injection)
4. Tool calls that need human approval
5. Keys that can be replaced by short-lived tokens or least privilegeTerminology
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