Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
python-backend - Skill - OpenSmartRoute
Skillv1.0.0
python-backend
Use when writing or editing Python backend code (FastAPI routers, SQLModel models, services, CLI). Covers typing, ORM usage, and English-only code style.
Instruction file imported from CSharplie/spark (.github/instructions/python-backend.instructions.md). Copyright stays with the author.
Python Backend Guidelines
Target Python 3.13+, full type hints on public functions.
Use SQLModel sessions from app/db/session.py; never write raw SQL strings.
Every query touching consumption_record or import_batch must filter
by the authenticated user_id.
Keep aggregation logic (pandas) in app/services/, independent of
FastAPI request/response objects, so it stays unit-testable without an
HTTP client.
Identifiers, docstrings, comments and log/CLI messages: English only,
even though the rendered UI is translated (see
docs/01-architecture.md).
Run uv run ruff check . && uv run ruff format . before considering a
change done.
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
# after Install: the listing is in your workspace's routing pool - a plan picks it for its slot
curl -s -X POST https://api.opensmartroute.ai/api/v1/route -H 'Authorization: Bearer $OSR_API_KEY' -H 'Content-Type: application/json' -d '{"text": "...", "plan": true}'
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.