Jump to a section
- 01The problem I was actually solving
- 02The shape of the setup
- 03My usage, in numbers
- 04How I actually work with AI
- 05The 5 rules I route by
- 06Set up the starter version today
- 07Add OmniRoute only when you need it
- 08How I know what ran
- 09What broke, and what it taught me
- 10Should you do this?
- 11What’s next
- 🎓New to AI? Free AI Starter course
- ★Config Pack: Windows videos + files (₱299)
I posted a short video about how I stopped spending a fortune on AI tokens for coding. Forty thousand people watched it in two days. The comments were all the same question: “What exactly is your setup?”
This is my exact setup, and the real way I work with AI every day.
- One local gateway sits between my agent and all my AI accounts.
- The expensive model only runs when I’m typing. Cheap models do the chores.
- Every request is logged, so I can prove what ran instead of guessing.
- The habits in section 4 work even if you only use ChatGPT.
I’m not telling you to copy this. This works for my accounts, my workload, my risk tolerance. Take what’s useful.
This does not give you free tokens. (Although Hermes and OmniRoute do have some free providers.) It gives you control, visibility, and failover. If you have one account and one provider, most of this is overkill for you. I’ll say that again at the end.
01The problem I was actually solving
I don’t chat with AI. I hand it jobs.
A single Hermes session for me is 200 to 700 messages and 100 to 360 tool calls: reading files, running commands, deploying, checking the result, fixing, deploying again. On top of that, the agent runs side tasks I never see: summarizing old context, generating session titles, reviewing its own work, reading screenshots.
Before, every one of those calls went straight to a provider on its own key, with its own model choice, on its own bill. I had no single answer to the question:
“What actually ran, on which account, and who got billed?”
And the expensive model was doing cheap work. The model I want writing a payment integration was also writing chat titles.
I was the problem. Cost was the symptom.
02The shape of the setup
Hermes is the agent I run. It has memory, skills, and tools. It’s what I actually talk to. github.com/
OmniRoute is a self-hosted, OpenAI-compatible gateway. It sits between Hermes and the providers. One endpoint in, many accounts out. github.com/diegosouzapw/OmniRoute
Everything is local. Nothing goes through a hosted middleman. My traffic, my Docker, my data volume.
03My usage, in numbers
Pulled from the gateway’s own dashboard and log this morning. I didn’t compile this by hand; I asked the agent for it.

OmniRoute dashboard, 30-day view

Model usage over time. Three accounts, one API key, one log.
| Metric | Value |
|---|---|
| Requests through the gateway | 10,451 |
| Succeeded | 9,966 (95.4%) |
| Handled by the cheaper, high-volume account | 7,787 (74.5%) |
| Handled by Claude | 2,400 (23.0%) |
Three out of four requests go to the cheaper account, and I never think about it.
Claude gets the quarter that needs real reasoning. Nobody decides that per request. The policy decides it once, and I move on.
04How I actually work with AI
Six habits. None need special tools. Hermes does most of them automatically; on Claude or ChatGPT you can do them by hand.
- It reads my memory before I say a word. A short “who I am and my rules” note, plus a notes vault it checks first. I never re-explain a project.
- What works becomes a skill. A short file with the steps, commands, and the trap I hit last time. I have 28. They load only when needed.
- Two coding rules, always on: simplest thing that works, and don’t overcomplicate. AI’s default is to overbuild.
- I delegate, I don’t type. Small workers do the coding on the cheap, fast route. 5,308 of last week’s requests were workers, not me.
- It has to show the receipt. After a deploy it checks the live site. “Done” without proof doesn’t count.
- Long sessions get compressed, not abandoned. Old turns get summarized, the task definition is protected, the session keeps going.
Keep one file called “about me and my rules” and paste it at the start of every chat.


My notes vault (Obsidian): 377 notes the agent reads before answering.
05The 5 rules I route by
- The expensive model only works when I’m in the room. Titles, summaries, and background checks go to a cheap model. Nobody can tell the difference.
- Background workers get the fast route, not the smart one.
- Screenshots go to the account that doesn’t rate-limit.
- Never switch models mid-task. Switching throws away the warm cache and re-sends everything.
- The config file decides, not my mood. No burning the good model on a chore at 2 AM.
06Set up the starter version today
Start with one working agent and one provider. Do not add routing, failover, or multiple accounts until that basic setup completes a real job.
A Mac, Windows, Linux, or WSL machine; one supported AI account or API key; and about 20 minutes.
Docker, OmniRoute, multiple accounts, custom routing, or a complicated memory system.
Use the Hermes Desktop installer, or open a terminal on macOS, Linux, or WSL and run:
curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash
On Windows, use the official installer. Full instructions: hermes-agent.nousresearch.com/
Run hermes setup and follow the prompts. If Hermes is already installed, hermes model lets you choose or change the provider.
Run hermes doctor, then start hermes and ask one normal question. If that fails, stop here and fix the base setup first.
Tell Hermes who you are, what you work on, and how you want it to behave. Keep this short. My two coding rules are: use the simplest thing that works, and do not overcomplicate.
Remember this about me: I am a senior developer. Prefer the smallest working solution. Verify real results before saying a task is finished.
Use a task with a visible result: inspect a small repository, update one page locally, summarize a document, or organize a folder. Avoid production access for the first test.
Inspect this project first. Then make the smallest safe change, run the relevant check, and tell me exactly what passed. Do not deploy.
Before trusting the result, ask what it actually ran and what evidence proves the task worked. This habit matters more than the model.
- Hermes opens without errors.
- Your provider answers a normal prompt.
- Hermes completes one real task using a tool.
- You can see the check that proves the result.
07Add OmniRoute only when you need it
You need the gateway when you have multiple accounts or providers, want one usage log, or need routing and failover. If you have one account and mostly chat, skip this section.
Back up the Hermes configuration and do not replace the default yet. A gateway should be an optional layer until it proves itself.
Follow the current project instructions at github.com/diegosouzapw/OmniRoute. Bind it to localhost unless you deliberately need network access.
Open OmniRoute’s local interface and connect each provider account there. Passwords, tokens, and verification codes should never pass through an AI chat.
Add OmniRoute as a custom OpenAI-compatible provider. Use its local address and the model name exposed by the gateway. Keep the original provider unchanged while testing.
Start a fresh Hermes session through OmniRoute. Ask it to complete a real tool task, then check OmniRoute’s usage log for the request, model, account, status, and token count.
Once a clean session works and appears in the gateway log, make OmniRoute the default. Add routing rules one at a time so a failure has one obvious cause.
Set up OmniRoute as a local gateway for Hermes. Back up the config first. Keep my current default unchanged. Bind the gateway to localhost. Let me complete provider logins myself. Prove one real Hermes tool call appears in OmniRoute's usage log before changing the default.
Paste that prompt into your agent as it is. The agent does the install; you only click Login for each account. If something breaks, section 9 lists what broke for me.
Connect Claude Desktop and Codex to OmniRoute
Both apps can send their requests through your gateway instead of straight to one account. Here’s the shape of it:
- Install OmniRoute (Node.js, then one npm command) and add a free-tier provider.
- Create an API key in the OmniRoute dashboard.
- Claude Desktop: turn on Developer Mode, then point its third-party inference setting at your gateway.
- Codex: add an OmniRoute provider to its config file and save your key as an environment variable.
- Prove it: send “hi”, then check OmniRoute’s request log to see which model actually answered.

Claude Desktop through a free provider isn’t Claude answering. In my test the reply came from grok-4.7. You get Claude’s app with whatever model your gateway routes to.
Two things to do right away: change the default dashboard password, and don’t run it on public Wi-Fi without requiring an API key.
08How I know what ran
Every request through the gateway is logged: what model was asked for, what actually served it, which account, success or failure, tokens in and out.
I don’t query that by hand. When something looks off, I ask the agent:
Did the gateway switch models on me?
> Why is everything returning 503?
> Did the failover actually fire, or do I just think it did?
It reads the log and answers with evidence, not vibes. Every answer in the next section came from that.
09What broke, and what it taught me
Everything failed at once. It wasn’t the provider.
Every route returned an error instantly, in about 40 milliseconds. Felt like an outage. It was the gateway’s own memory guard tripping. One restart fixed it. Lesson: when everything fails at the same instant, suspect your tool before the provider.
“The gateway keeps switching models on me.” It didn’t.
I asked the agent to check the log. Steady state was boring and correct. The “switching” was a test sweeping the model catalog, plus a dashboard that showed several conversations as one. Lesson: read the receipt before blaming the tool.
Failover changes the model under a running task.
Different model means different style and different behavior mid-task. So I use failover only where a stall costs more than a swap, and I raised the retry count so brief overload rides out on the primary first.
One control point means one point of failure.
If the gateway’s down, every session errors. That’s the price. It restarts on reboot, and I accept the tradeoff knowingly.
10Should you do this?
What this gives you: one credential, one log, routing policy in a file, failover you can prove, and your traffic staying on your machine.
What it does not give you: more quota out of a single account. If you want that, you need a second account. I’m not pretending otherwise.
What’s next
You don’t need my whole setup to get most of the benefit. Start small, tonight.
- FREEAI Starter courseUnderstand AI and build your first projects. Start the course
- ₱299Config PackImprove your workflows and learn more powerful tools and techniques. See what’s inside
- ₱2,599Vibe Coding FoundationsBuild real apps with AI, one small quest at a time. Enrollment open. See what you’ll build
Thanks for reading.
Joshua
Free to share. Send friends to joshuadablo.com/free · Privacy