agentleFS
rakaarwakyrakaarwaky/agents-arwaky/skills/ai-gateway/omniroute/SKILL.md

omniroute

Skill0 starsChanged 56 days agoMITView on GitHub

OmniRoute free AI gateway over OpenAI REST, 350+ providers with 150+ free tiers. Use when mentioning OmniRoute, OMNIROUTE_URL, auto/best-free, free-tier routing.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    All requests: ${OMNIROUTE_URL}/v1/...

    line 22

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

OmniRoute

Free-first AI gateway exposing OpenAI-compatible REST. Hundreds of providers, most with a free tier, plus combo routing that picks a model per task shape.

Host-native — no Docker, no container. Installed from npm, pinned by vendor/omniroute.

Setup

export OMNIROUTE_URL="http://127.0.0.1:7777"      # dashboard and API share one port
export OMNIROUTE_KEY="sk-..."                      # from the dashboard, or `omniroute keys`

All requests: ${OMNIROUTE_URL}/v1/... with header Authorization: Bearer ${OMNIROUTE_KEY}.

Verify: curl $OMNIROUTE_URL/v1/models -H "Authorization: Bearer $OMNIROUTE_KEY"

Config lives in ~/.omniroute/.env

OmniRoute owns its own working directory — ~/.omniroute/ holds .env, storage.sqlite, and logs/. This is not the repo's ~/.config/<tool>/ layout, and it is deliberate: upstream reads .env from its working directory, so pointing the unit anywhere else silently loses the settings.

STORAGE_ENCRYPTION_KEY in that file encrypts every provider credential in storage.sqlite. Never rotate it and never let a tool regenerate it — the database becomes unreadable while still looking healthy. Edit the file by hand; the aa verbs never write to it.

Override the port with OMNIROUTE_PORT, or edit PORT in ~/.omniroute/.env and restart.

Combo routing

The reason to use OmniRoute over a plain provider list — combos pick a model by task shape instead of you naming one:

curl $OMNIROUTE_URL/v1/chat/completions -H "Content-Type: application/json" \
  -d '{"model":"auto/best-free","messages":[{"role":"user","content":"hi"}]}'
ComboUse for
auto/best-freeonly free tiers — cheapest and safest
auto/best-codingcoding tasks
auto/best-fastlow-latency replies
auto/best-chatgeneral conversation

Discover models

curl $OMNIROUTE_URL/v1/models          # everything currently routable
omniroute models --free                # free tiers only, via the CLI

Provider keys

Most providers need no key — the free-tier catalogue is what makes the gateway useful out of the box. Add keys with omniroute setup (walks through it and stores them in the database), or via the dashboard at http://127.0.0.1:7777. Both write to storage.sqlite, so they need no edit to ~/.omniroute/.env.

STORAGE_ENCRYPTION_KEY encrypts stored credentials at rest. Never change it once credentials exist — every previously stored key becomes unreadable.

Manage the daemon

aa omniroute status            # process, systemd, ports, API readiness
aa omniroute restart           # needed after any env edit
aa omniroute logs              # journalctl tail
aa omniroute models            # /v1/models through the gateway
aa omniroute service-install   # 24/7 systemd user unit + enable-linger

Also upstream, for settings the aa verbs do not cover:

omniroute doctor              # environment + config diagnostics
omniroute keys                # mint/revoke API keys
omniroute cost                # spend report
omniroute status              # upstream's own view

Errors

  • Port already bound → something else holds 7777; check ss -ltn | grep 7777, then change PORT in ~/.omniroute/.env and aa omniroute restart
  • Configs unreadable after an upgrade → STORAGE_ENCRYPTION_KEY changed; restore the previous ~/.omniroute/.env. Check omniroute doctor
  • omniroute serve exits immediately → run omniroute doctor; the port is the usual cause

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.