frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Bridge your Claude/OpenAI subs into a team API with per-key cost caps

https://github.com/Shreyas-Dayal/ai-cli-bridge
1•shreyas8•1h ago
Hey HN, I built this because I wanted to give my team access to Claude and GPT models for internal testing, but the official APIs have no per-key spending controls. You can't cap a key at $5/day or 100 requests/month — it's all or nothing. With non-technical team members in the mix (designers, PMs, QA), one forgotten loop or oversized prompt away from an ugly bill wasn't a risk I wanted to manage manually. Idea was to allow the members to test with these restricted API keys before using official keys.

So I built a bridge: it wraps the Claude Code CLI and Codex CLI behind an Express API, backed by existing Max/Pro subscriptions instead of per-token billing. Each team member gets their own API key with hard limits — requests/day, tokens/month, cost caps. Hit the limit and the key stops working. No surprises. An admin dashboard shows who's using what in real time.

Key features: - Two providers: /generate (Claude) and /generate-codex (Codex) - Per-user API keys with SHA-256 hashing (shown once, never stored raw) - Per-key hard limits with real-time tracking and enforcement - Admin dashboard for key management, usage monitoring, and request logs - Deploy on a $5 VPS behind Cloudflare Tunnel

What it's NOT: A production API replacement. It's for internal tooling and prototyping. CLI invocations add ~3-8s latency vs direct API calls.

Important: Wrapping CLI subscriptions behind a shared API may violate the Terms of Service of the underlying providers. Anthropic's Consumer ToS (updated Feb 2026) prohibits using subscription OAuth tokens in third-party tools, and OpenAI's ToS prohibits account sharing. Review the applicable terms before using this. See the Disclaimer section in the README for details.

Security was a focus: execFile (no shell injection), timing-safe auth, CSP/HSTS, input validation, rate limiting. Details in SECURITY.md.

Stack: Node.js, TypeScript, Express. No database — JSON files on disk.

GitHub: https://github.com/Shreyas-Dayal/ai-cli-bridge

Would love feedback on the approach and any security concerns I might have missed.

Comments

othersidejann•1h ago
Isn't this pretty clearly against Anthropic ToS?

Scrapling: An adaptive web scraping framework that handles everything

https://github.com/D4Vinci/Scrapling
1•Paddyz•3m ago•0 comments

Show HN: RayClaw – AI agent like OpenClaw, standalone or as a Rust crate

https://github.com/rayclaw/rayclaw
1•stevensu•4m ago•0 comments

I'm in Tehran, what do you think will be happen?

1•pajuhaan•7m ago•2 comments

An open-source, C#-based Windows RAT (Remote Access Tool)

https://github.com/iss4cf0ng/DuplexSpyCS
1•iss4cf0ng•8m ago•1 comments

Show HN: How many hours have you spent with Claude Code? (CLI tool)

2•yurukusa•8m ago•0 comments

The most beautiful formula not enough people understand (3blue1brown) [video]

https://www.youtube.com/watch?v=fsLh-NYhOoU
1•vismit2000•9m ago•0 comments

Show HN: AI Moire Pattern Remover – Free tool for screen photos, scans, fabrics

https://moireremoval.com
1•wyattly•10m ago•0 comments

Unsloth Dynamic 2.0 GGUFs

https://unsloth.ai/docs/basics/unsloth-dynamic-2.0-ggufs
2•tosh•11m ago•0 comments

Qwen3.5 GGUF Benchmarks

https://unsloth.ai/docs/models/qwen3.5/gguf-benchmarks
2•tosh•13m ago•0 comments

Israel and US launch strikes on Iran as Trump confirms 'major combat operations'

https://www.reuters.com/world/iran-crisis-live-explosions-tehran-israel-announces-strike-2026-02-28/
2•TechTechTech•16m ago•0 comments

Dan Simmons, author of Hyperion and more books, dies at 77

https://arstechnica.com/culture/2026/02/hyperion-author-dan-simmons-dies-from-stroke-at-77/
1•geuis•16m ago•0 comments

Open source router for personal AI agents

https://manifest.build/docs/introduction
1•stosssik•18m ago•0 comments

Is an event planning platform UAE suitable for weddings and private parties?

1•tonhurt•19m ago•1 comments

Cloudflare radar shows Iran internet traffic drop to near zero

https://radar.cloudflare.com/traffic/ir?dateRange=1d
2•nodesocket•21m ago•0 comments

Ask HN: Why are some websites locking or using the audio device on Windows?

1•ezconnect•25m ago•0 comments

Iran agreed zero enriched uranium, and israel immediately bombs Tehran

https://twitter.com/muhammadshehad2/status/2027645609621033376
3•proshno•30m ago•1 comments

Leak confirms GrapheneOS and Motorola partnership

https://piunikaweb.com/2026/02/27/leak-confirms-grapheneos-motorola-partnership-for-non-pixel-har...
3•Cider9986•31m ago•0 comments

You might be falling behind without realizing it

1•hoangnnguyen•35m ago•1 comments

Show HN: AI Tutorial Series – Building Neural Networks with Python

https://peertube.cif.su/watari/videos/watch/123456
1•watari_ai_tools•37m ago•0 comments

Show HN: Agent Hand – Tmux session manager for AI coding agents (Rust)

https://weykon.github.io/agent-hand/
1•weykon•45m ago•0 comments

The proposal for generic methods for Go has been officially accepted

https://github.com/golang/go/issues/77273
2•birdculture•45m ago•0 comments

Startup idea validator – Get brutal verdict

https://dontbuild.it/
1•hackerbo•53m ago•0 comments

Students Are Skipping the Hardest Part of Growing Up

https://larrycuban.wordpress.com/2026/02/28/students-are-skipping-the-hardest-part-of-growing-up-...
4•Tomte•59m ago•0 comments

Packaging AI/ML Models as Conda Packages

https://prefix.dev/blog/packaging-ai-ml-models-as-conda-packages
1•droelf•1h ago•0 comments

OpenAI: Food First, Then Morals

1•goloroden•1h ago•0 comments

Show HN: News Pulse – Real-time global news feed, 475 sources, no algorithm

https://news-alert-eta.vercel.app
6•trevwebdev•1h ago•1 comments

Show HN: Standup.so – Paste your commits, get a standup report in seconds

https://standup-so.vercel.app
1•neoloong•1h ago•1 comments

Redirector Privacy Alternatives: forward links to privacy aware front ends

https://github.com/duyfken/RedirectorPrivacyAlternatives
2•Baljhin•1h ago•1 comments

NASA announces change to its Moon landing plans

https://www.bbc.co.uk/news/articles/c6270030neyo
2•iamflimflam1•1h ago•1 comments

Israel and the U.S. launch strikes against Iran

https://www.npr.org/2026/02/28/nx-s1-5730158/israel-iran-strikes
11•0in•1h ago•2 comments