frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: OneCLI – OSS credential gateway that keeps secrets out of AI agents

https://github.com/onecli/onecli
22•Jonathanfishner•2h ago
hey HN, Jonathan and Guy here, creators of OneCLI (https://onecli.sh/). OneCLI is an open source vault for AI Agents.

Traditional vaults are used to store your secrets and, on demand, provide them to you all in a secure way, trusting the person to keep them safe. We figured that in the agent's world, this is not the case, as you don't know what happens with the secret after it's delivered to the agent, or where it was saved. Or maybe someone even manipulated them to hand them over...

From that understanding, we decided to build a network gateway that sits between your AI agents and the services they call. OneCLI matches the request by host/path, verifies the agent should have access, swaps the placeholder for the real credential, and forwards the request. the secrets set inside the OneCLI vault, encrypted on rest, or could fetch in realtime from your bitwarden / 1password wallets.

Demo - https://www.youtube.com/watch?v=5e5pbPEzZfY.

We started working on this by accident, even though our careers were in the security space. We were working on a devtool called ChartDB, an open-source DB tool. When OpenClaw took off back in January, we started using it to orchestrate agents on top of ChartDB. We quickly understood there is a big issue around auth. Agents need credentials to do real work, but to give them those secrets would not be the best idea. they keep them in their memory and also write them down to local files and their sessions as plain text. And we knew that agents can easily be fooled into giving up those API keys/secrets. So we needed some way to control the agent and stop prompt injections from tricking it into using its services for an attacker's benefit. Not providing the keys to the agent + adding alerts or human-in-the-loop for sensitive operations, in case someone manipulates the agent, and access logs are being audited.

We use it ourselves daily. My OpenClaw runs my day across Attio, Gmail, and my calendar, with human-in-the-loop approval on sensitive actions. The approval is enforced at the network layer, so it holds whether the agent goes through MCP, CLI, curl, or code it wrote on the fly. Guy uses it to review PRs but can't merge without his approval.

Companies mostly use it for coding agents currently, which get creative about finding ways to elevate their permissions to reach the goal. With OneCLI, it doesn't matter what the agent finds: if the request isn't in policy, it will not go through.

The proxy is written in Rust, the dashboard is Next.js, and secrets are AES-256-GCM encrypted at rest. Everything runs in a Docker container. It works with any agent framework (Claude Code, Codex, Cursor, OpenClaw, Hermes or anything that can set an HTTPS_PROXY).

It won't stop an agent from misusing access it legitimately has, so scope policies tightly!

happy to answer anything. We believe we can't trust the model to behave and have to set deterministic rules to stay in control. Comments welcome!

Comments

winterrx•1h ago
nice launch. i have started to use a secrets manager (infisical) recently for my different projects and it's been really helpful. are your customers solo hackers, small startups or large enterprises that are looking for this kind of solution? i like to see competition in the space
bstsb•1h ago
+1 on infisical. brilliant self-hosted offering, i love their CLI and it works well with CI pipelines
doctorpangloss•51m ago
does the agent control the environment that onecli is running in? (yes)
denysvitali•45m ago
Nice! I've built something like this, although specific to GitHub: https://github.com/denysvitali/gh-proxy

The idea being that if the fake token leaks from my sandbox - it would be completely useless for an attacker

theozero•43m ago
Looks great. The "credential broker" pattern (inject placeholders, replace in proxy) is something we just added to https://varlock.dev (totally free and open source).

Rather than using a dashboard, ours is configured within a .env.schema file, and rather than our own vault, we can pull secrets using our plugins (16 and counting) including Infisical, 1Password, Bitwarden, AWS, GCP, Azure, more. Also very useful for coding tasks in general, as we have integrations for most frameworks, and add built in validation, type safety, leak detection, etc.

Will definitely be keeping an eye on OneCLI to compare notes.

rahulr0609•43m ago
+1 to Infisical.

We added Hashicorp Vault support here: https://github.com/Infisical/agent-vault/pull/256

adithyassekhar•40m ago
Holy mother of whatever this is, everyone got the same idea again and there’s a bunch of implementations people are desperate to promote in the comments.

You’re just trading one key for another, whatever abstraction you chose to trust, at some point credentials will pass to your llm of the week.

mjg59•32m ago
> at some point credentials will pass to your llm of the week.

How?

theapiartist•29m ago
I happen to know a solution where credentials wouldn't get to the agent. It's structurally impossible
notaharvardmba•37m ago
oauth, saml, oidc accomplish the same thing in a way more mature way, so if you’re already using SSO just do that instead of adding another point of failure..
mjg59•32m ago
No they don't - you're still giving the agent a static token that can be exfiltrated and used elsewhere.
sandeepkd•8m ago
It works great for static credentials. As a product I think about adding couple more things that might be helpful here (Btw I am not the client for this, I just happen to know them as practical problems)

1. Support for OAuth Client credentials - Gateway does the OAuth dance to get the access token, this is quite practical and even useful in case of regular services running across clusters and sharing the same clientId-secretId

2. Support for request retries on certain failures and short circuiting in other cases

Writing by hand is good for your brain

https://nealstephenson.substack.com/p/writing-by-hand-is-good-for-your
454•dwwoelfel•3h ago•212 comments

What happened to TheNumbers.com

https://stephenfollows.com/p/what-just-happened-to-thenumberscom-should-worry-us-all
80•nickthegreek•1h ago•11 comments

Software rendering in 500 lines of bare C++

https://haqr.eu/tinyrenderer/
138•mpweiher•3h ago•24 comments

Astronomers may have found the first exomoon

https://www.eso.org/public/news/eso2610/
144•MarcoDewey•4h ago•51 comments

Startup founders urge U.S. government not to shut off Chinese open weight AI

https://www.politico.com/news/2026/07/22/startup-founders-urge-trump-not-to-shut-off-chinese-open...
358•theanonymousone•2h ago•359 comments

Learn OpenGL, extensive tutorial resource for learning Modern OpenGL

https://learnopengl.com/
90•ibobev•3h ago•48 comments

Launch HN: Screenpipe (YC S26) – Power your agents by your 24/7 screen recording

22•louis030195•1h ago•13 comments

Why Software Factories Fail (or: harness engineering is not enough)

https://github.com/humanlayer/advanced-context-engineering-for-coding-agents/blob/main/wsff.md
27•dhorthy•2h ago•10 comments

JEP 540: Simple JSON API (Now in Incubator)

https://openjdk.org/jeps/540
43•theanonymousone•2h ago•29 comments

Hybrid-Electric Aicraft Engine Targeting 30% Fuel Efficiency

https://www.rtx.com/news/news-center/2026/07/21/rtxs-pratt-whitney-canada-advances-hybrid-electri...
55•r2sk5t•3h ago•35 comments

Free way to get your data out of ChatGPT Business accounts

https://github.com/Conradqh/scrapemychats
42•conradqh•2h ago•3 comments

The arguments against open source AI are bad

https://tombedor.dev/arguments-against-open-source-ai-are-very-bad/
35•jjfoooo4•1h ago•5 comments

Learn WebGPU for C++

https://eliemichel.github.io/LearnWebGPU/
34•ibobev•3h ago•5 comments

Show HN: OneCLI – OSS credential gateway that keeps secrets out of AI agents

https://github.com/onecli/onecli
22•Jonathanfishner•2h ago•12 comments

Show HN: Palmier Pro – open-source macOS video editor built for AI

https://github.com/palmier-io/palmier-pro
26•harrisontin•2h ago•6 comments

Show HN: Remux – an open-source tmux workspace designed for iPhone

https://github.com/h3nock/remux
47•bitwise42•3h ago•14 comments

AI Companies Are Trying to Hide a Staggering Amount of Debt

https://futurism.com/artificial-intelligence/ai-companies-hide-debt-off-balance-sheet
381•technewssss•4h ago•179 comments

Encryption and Globalization 15 Years Later: E2EE and the "Going Dark" Debate

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6959699
32•iamnothere•3h ago•12 comments

OpenStreetMap: Admin_level for All Countries

https://wiki.openstreetmap.org/wiki/Tag:boundary%3Dadministrative#Table_:_Admin_level_for_all_cou...
60•ivanjermakov•4d ago•9 comments

You can now run same OCI images as containers or Firecracker microVMs

https://github.com/pullrun/pullrun
37•pullrun•3h ago•13 comments

Show HN: Whetuu – a zero-config cross-shell prompt written in Zig

https://yamafaktory.github.io/whetuu/
30•yamafaktory•3h ago•12 comments

Emacs Is a Lispboard

https://en.andros.dev/blog/06bfd107/emacs-is-a-lispboard/
35•andros•4h ago•9 comments

Show HN: Claude-thermos – keeps your Claude session warm for you

https://github.com/izeigerman/claude-thermos
5•s0ck_r4w•57m ago•0 comments

What happens when the information runs out

https://blog.jimgrey.net/2026/06/30/what-happens-when-the-information-runs-out/
34•mooreds•4h ago•10 comments

Floating Companion: Exploring Design Space for Soft Floating Robots in Indoor

https://dl.acm.org/doi/10.1145/3800645.3813051
12•hopelessluca•1w ago•3 comments

Fields Medals 2026

https://www.mathunion.org/imu-awards/fields-medal/fields-medals-2026
38•nill0•3h ago•9 comments

Scanning for Pangram Errors

https://veryfineprint.substack.com/p/scanning-for-pangram-errors
62•jsnell•6d ago•35 comments

Brow6el: A full-featured web browser for the terminal using Chromium

https://tangled.org/janantos.tngl.sh/brow6el
33•nerdypepper•4h ago•10 comments

OpenAI’s accidental attack against Hugging Face is science fiction that happened

https://simonwillison.net/2026/Jul/22/openai-cyberattack/
255•abhisek•16h ago•212 comments

Show HN: macOS menu-bar manager for SSH port forwards

https://github.com/lx2026/RelayBar
27•linxy97•3h ago•3 comments