Free · no card · no sign-up
Get started free.
Install Halfly in minutes. It watches your real traffic and shows what you would save, before you pay a penny. When you like the number, switch it on for £5 a month.
Step 1: Install Halfly
One command. Requires Python 3.10+.
Terminalpip install halflyStep 2: Create your config
halfly initwriteshalfly.yaml. Pick your strong model (the one you use today) and a cheap one, and set their prices in US dollars per million tokens: they drive every savings number Halfly reports.Terminalhalfly initStep 3: Add your provider key
Put it in a
.envfile next tohalfly.yaml(Halfly loads it), or set it in your environment. On OpenAI or another provider? Use the key name fromhalfly.yaml, such asOPENAI_API_KEY. Your keys stay on your machine..envANTHROPIC_API_KEY=sk-ant-...Step 4: Start the proxy
Halfly now listens on
http://localhost:8000, in front of your providers.Terminalhalfly serveStep 5: Point your app at Halfly
Change the base URL to
http://localhost:8000/v1and ask for the modelhalfly-auto. Your SDK, streaming and tool calls keep working.app.pyfrom openai import OpenAI client = OpenAI(base_url="http://localhost:8000/v1") reply = client.chat.completions.create( model="halfly-auto", messages=[{"role": "user", "content": question}],)Step 6: Watch the “would save” number grow
Open localhost:8000/dashboard. On the free plan Halfly runs in observe mode: every request still goes to your strong model, so your users see no change, while the dashboard counts what routing would save you, and at what checked quality.
Step 7: Switch the savings on
Like the number? Buy Starter (£5 a month) or Pro (£10 a month). After checkout you get your licence key on screen: activate it, restart
halfly serve, and routing switches on. If you ever stop paying, Halfly goes back to observe mode and your app keeps working.Terminalhalfly licence activate <key>halfly serve
Like the number?
Switch it on.
Start free, then pick a plan when your dashboard shows the saving is worth it.
Free
£0forever
See what you would save, on your own traffic.
- Installs in minutes. No card, no sign‑up
- Observe mode: every request still goes to your strong model, so your users see no change
- Dashboard shows what routing would save, and at what checked quality
- Budget caps on your AI spend
Switch the savings on
Starter
£5a month
Turn the savings you saw into real ones.
- Routing with the quality dial: easy prompts to the cheap model, hard ones to your best
- Exact cache: repeat questions are answered for free
- Fallback to the other model on errors and rate limits
- Budget caps, savings dashboard and
halfly report
Pro
£10a month
Savings that keep growing as Halfly learns.
- Everything in Starter
- Self-learning:
halfly learntunes routing on your own checked traffic - Cost per feature of your app, with quality per feature
- Weekly Slack-style savings report and budget alerts
- Prompt compression for long prompts
Cancel any time. If you stop paying, your app keeps working: Halfly simply goes back to free observe mode.
Halfly runs on your servers, so your prompts never reach us. Prices in pounds, per month. Bigger team? Talk to us.