Ficelle
A local, OpenAI-compatible router that keeps your AI agents running, and never lets
them overspend. Point any OpenAI-compatible client at http://127.0.0.1:8646/v1
(nothing to import, no account) and your agent fails over across providers and can never
run up a surprise bill.
Ficelle is the product, not a plugin for another agent. It owns its local runtime, service, state, credentials, updater, and Control Center. Hermes, OpenClaw, and future host integrations are optional add-on connectors to an already working Ficelle installation.
Ficelle sells reliability, not "free AI": it routes to free LLM capacity, fails over when a provider rate-limits or breaks, and enforces a strict-zero wall so it never makes a paid call.
Why Ficelle
- Reliability: multi-provider auto-fallback, per-reason cooldowns, and quota-recovery probes, so one provider's outage doesn't stop your agent.
- Strict-zero billing safety: paid fallback is hardcoded off; a model that tries to bill is auto-quarantined. No surprise invoices.
- Local control plane: the router, configuration, and stored API keys stay on your machine. Ficelle is not a hosted proxy; prompts are sent directly to the upstream provider you choose.
- OpenAI-compatible: drop-in
/v1/modelsand/v1/chat/completions, with stable virtual models (ficelle/auto-coding,ficelle/auto-tools,ficelle/auto-json,ficelle/auto-reasoning,ficelle/auto-long, …).
What to route to free models
For coding assistants, use ficelle/auto-coding: it admits only models in the installed release's
bundled coding pool and provider deployments that pass local availability checks,
and returns a local 503 rather than silently routing
to an unverified model. Public leaderboard data is used to choose what Ficelle should evaluate
next, never as route proof.
Free models are not a drop-in replacement for a frontier model on every task, and this
project does not pretend otherwise. Across a 76-task benchmark against gpt-5, free
routing was quality-safe (tied or better) on:
| Workload | Quality-safe | Virtual model |
|---|---|---|
| Classification, labelling, triage | 100% | ficelle/auto-fast |
| Structured extraction to JSON | 95% | ficelle/auto-json |
| Reasoning and code | 94% | ficelle/auto-reasoning |
| Polished long-form writing | 50% | keep your paid model |
Route the first three through Ficelle and keep the budget for the writing. Method and raw numbers: the benchmark write-up.
Quick start
Install the versioned open Core from its GitHub Release:
curl -fsSL https://raw.githubusercontent.com/TheBlueHouse75/ficelle-open-core/v0.3.9/scripts/bootstrap-ficelle.py | python3
~/.local/bin/ficelle doctor --text
Core always installs standalone and connectors are explicit add-ons. To install Pro after purchase without putting the key in shell history, enter it silently before running the same safe command:
(
read -s FICELLE_LICENSE_KEY
export FICELLE_LICENSE_KEY
curl -fsSL https://raw.githubusercontent.com/TheBlueHouse75/ficelle-open-core/v0.3.9/scripts/bootstrap-ficelle.py | python3
)
Or install from PyPI
If you already manage Python environments, the same open Core is on PyPI:
uv tool install ficelle-router # or: pip install ficelle-router
ficelle-setup --skip-package
PyPI serves the exact wheel attached to the GitHub Release, so the two paths install identical bytes. The bootstrap above stays the recommended one because it is the only path that verifies that for you: it checks the wheel against a SHA-256 pinned in the script you downloaded.
Add a provider key — nothing routes without one
Ficelle routes with your provider accounts and ships no keys of its own, so a fresh install cannot serve a single completion until you store one. It prompts for the key with hidden input and keeps it out of your shell history:
ficelle set-key openrouter # create a key at https://openrouter.ai/keys
ficelle set-key nous # create a key at https://portal.nousresearch.com/
One is enough; Ficelle fails over across whichever providers you have configured.
Keys stay on your machine, in your OS secret store or ~/.ficelle/.env.
ficelle models reads the providers' public catalogs, which they serve without
credentials — so a long model list does not mean a request can be served.
ficelle doctor --text reports which providers are actually configured:
ficelle doctor --text
ficelle health
curl -s http://127.0.0.1:8646/admin/status.json | python3 -m json.tool
Point your client at http://127.0.0.1:8646/v1.
The local endpoint works with the OpenAI client without a hosted Ficelle account:
from openai import OpenAI
client = OpenAI(
base_url="http://127.0.0.1:8646/v1",
api_key="ficelle-local",
)
See the failover, without waiting for an outage
ficelle demo
Sends one real completion with the model that was about to answer forced to fail, and shows what happens next:
Only the outage is simulated. The candidate order, the failure classification and
the answer all come from the same code path that serves your agents, and the run
writes nothing: no cooldown, no route log. ficelle demo --json prints the same
run as a payload.
The recording passes --knock-out 2, which fails the two leading candidates
instead of one, so the reroute crosses a provider boundary rather than landing on
the next model of the same provider. Every fabricated attempt is labelled on its
own line whichever number you use. It is an unedited capture of a real run against
the free pool: re-running it gives different models, a different latency, and a
different sentence back.
The standard product install is complete at this point. Optional host connectors are installed only afterwards and never select or modify the Ficelle runtime.
Updates
Ficelle checks for a newer verified Core release in the background after startup. The local Admin Control Center displays the release notes and offers a one-click install; the equivalent CLI commands are:
ficelle update --check
ficelle update --install
The updater downloads the release wheel, verifies its SHA-256, keeps a backup of the
installed package, runs import/service smoke checks, and restarts the managed user
service. A failed update restores the previous package. It never stores a Pro license
key. A paid release can advertise a compatible authenticated Pro artifact in Ficelle's
compact release manifest. For production, authorization: "entitlement" lets the
license service authorize the already-cached signed entitlement token; Core never sends
the user's license key or persists a new update secret. authorization: "bearer" is
available for managed deployments through the short-lived FICELLE_UPDATE_PRO_TOKEN.
The updater runs only inside the Ficelle-owned runtime and verifies dependencies before stopping the managed service.
The default check source is the latest GitHub Release. A deployment can point the Core at
its own HTTPS manifest with FICELLE_UPDATE_MANIFEST_URL. The compact manifest shape is:
{
"version": "0.3.9",
"release_url": "https://github.com/TheBlueHouse75/ficelle-open-core/releases/tag/v0.3.9",
"core": {
"wheel_url": "https://downloads.example/ficelle_router-0.3.9-py3-none-any.whl",
"sha256": "<64 hexadecimal characters>"
},
"pro": {
"wheel_url": "https://install.ficelle.ai/api/releases/latest/wheel",
"filename": "ficelle_pro-0.3.9-py3-none-any.whl",
"sha256": "<64 hexadecimal characters>",
"authorization": "entitlement"
}
}
Update checks are non-blocking and can be disabled for a managed environment with
FICELLE_DISABLE_UPDATE_CHECK=1.
Point your client at it
One page per client, each ending at the same local endpoint: Codex CLI · Continue · Cursor · Open WebUI · OpenAI SDK / scripts · Claude Code (protocol status) — shared basics and the model-id table in the index.
How it works
OpenAI-compatible client → 127.0.0.1:8646/v1 → Ficelle router
├─ strict-zero catalog filtering
├─ provider credential resolution
├─ model scoring + fallback
├─ cooldowns / quarantine / failure classification
└─ admin API + dashboard + logs
↓
free LLM providers
Runtime state lives under ~/.ficelle/. Provider secrets resolve from the environment /
Ficelle keychain (~/.ficelle/ficelle-secrets.keychain-db on macOS) and are never
written to the repository. Connector homes contain connector assets and host configuration
only; they are never Ficelle runtime or state roots. Ficelle does not read or copy runtime state
from a connector home.
Open core & Ficelle Pro
This repository is the open core (Business Source License 1.1): the routing engine, the strict-zero safety model, the provider-adapter framework, and reference providers (OpenRouter, Nous). It runs standalone as the free tier.
Ficelle Pro is a separate, licensed package that adds the maintained value:
- the full curated provider pool, kept working as providers change their terms;
- compound-model fusion routing;
- native request compression;
- continuous provider-integration updates and support.
The paywall never sits on the core loop: routing, strict-zero, and free-provider access stay free and open. The Pro pack is not part of this repository; the core runs fully without it. Pricing and purchase live on the website.
Optional client connectors
Hermes is not required to install, update, or use Ficelle. If you want the connector and Hermes is not installed yet, use its official installer, which launches the setup wizard:
curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash
Run the connector phase from the already installed Ficelle runtime:
ficelle connectors install hermes
This installs the provider and compression plugins with backups.
The provider name is ficelle. Setup makes Ficelle the main Hermes route and also installs
specialized auxiliary slots:
model: { provider: "custom", base_url: "http://127.0.0.1:8646/v1", model: "ficelle/auto-orchestrator" }
auxiliary:
title_generation: { provider: "ficelle", model: "ficelle/auto-fast" }
compression: { provider: "ficelle", model: "ficelle/auto-compression" }
web_extract: { provider: "ficelle", model: "ficelle/auto-json" }
Export the recommended YAML with ficelle connectors export hermes.
OpenClaw is a separate experimental connector over the same local endpoint. It does not require Hermes and can coexist with or be removed independently from the Hermes connector.
License
The open core is licensed under the Business Source License 1.1 (see the LICENSE file):
you may use, modify, redistribute, and self-host it; you may not offer it to third parties
as a competing hosted service. Each released version converts to the Apache License 2.0
four years after its publication.
Contributing and support
See CONTRIBUTING.md for the development workflow. Report security
issues privately using SECURITY.md. For installation or billing support,
email support@weesperneonflow.ai.
Metadata
Release files for ficelle-router 0.3.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ficelle_router-0.3.9.tar.gz | 688.0 kB | With provenance | Details for ficelle_router-0.3.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ficelle_router-0.3.9-py3-none-any.whl | Python 3 | none | any | Details for ficelle_router-0.3.9-py3-none-any.whl |
Total release size: 1.4 MB
Release files / ficelle_router-0.3.9.tar.gz
| Download URL | ficelle_router-0.3.9.tar.gz |
|---|---|
| Size | 688.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cdbc7d8a8105b909a45bd3f95f86422fc6facab1d2be3c4b2f47f1a57b59b26f
|
|
BLAKE2b-256 checksum How to use checksums |
c474d5b2c72c0782a8ea4bd67da7d89d3cad31cdb130a74a87ffef8132064a12
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 3, 2026.
Transparency logRelease files / ficelle_router-0.3.9-py3-none-any.whl
| Download URL | ficelle_router-0.3.9-py3-none-any.whl |
|---|---|
| Size | 718.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f48e9996cfce3e239d5b81da63e10a86d2ba3b12b00ebf1977ec5a0365d0345e
|
|
BLAKE2b-256 checksum How to use checksums |
cbadeeaaf19a283159df0e778ec75ecfa098de97f8cf9af175c1f0274e417aac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 3, 2026.
Transparency logSecurity for ficelle-router 0.3.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for ficelle_router-0.3.9.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 3, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.