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.
api - Skill - OpenSmartRoute
Skillv1.0.0
api
Copilot scoped rules: api / HTTP server (adapter for docs/ai/decision-log.md Phase 22, mistakes.md)
Instruction file imported from shifulegend/project-zero (.github/instructions/api.instructions.md). Copyright stays with the author.
Copilot scoped rules: api / HTTP server (adapter for docs/ai/decision-log.md Phase 22, mistakes.md)
Hand-rolled HTTP/1.1 over raw sockets, no external HTTP library; loopback-only by default.
CORS/auth are off by default — don't change; keeps loopback experimentation open.
Only one generate_with_callback runs at a time, serialized via ApiContext.generation_mutex
trylock (second concurrent request → 429); other routes never touch that mutex.
src/api/webui_bundle_generated.c is generated/committed — edit webui/src + make webui-bundle instead.
"Untested" socket code is not verified code — smoke-test with real curl/curl --raw before
trusting it (2026-07-15: four real protocol bugs were hiding behind that label).
signal(SIGPIPE, SIG_IGN) must stay in api_server_start().
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
yaml
targets:
- https://api.opensmartroute.ai/api/v1/registry/shifulegend-project-zero-api-instructions/manifest # or paste the manifest below
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.