flagshiprouter
Skill12 starsChanged 57 days agoMITView on GitHub
Entry point for FlagshipRouter — local/remote AI gateway with OpenAI-compatible REST for chat, image, TTS, embeddings, web search, web fetch. Use when the user mentions FlagshipRouter, FLAGSHIPROUTER_URL, or wants AI without writing provider boilerplate. This skill covers setup + indexes capability skills; fetch the relevant capability SKILL.md from the URLs below when needed.
In this repository10 other files it gives its agents.
- open-sse/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- flagshiprouter-chatSkill
- flagshiprouter-embeddingsSkill
- flagshiprouter-imageSkill
- flagshiprouter-sttSkill
- flagshiprouter-ttsSkill
- flagshiprouter-videoSkill
- flagshiprouter-web-fetchSkill
- flagshiprouter-web-searchSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are 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.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
All requests: ${FLAGSHIPROUTER_URL}/v1/...
- Very specific: line 33
Use data[].id as model field in requests.
- Very specific: line 45
When the user needs a specific capability, fetch that skill's SKILL.md from its raw URL:
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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.
Files
FlagshipRouter
Local/remote AI gateway exposing OpenAI-compatible REST. One key, many providers, auto-fallback.
Setup
export FLAGSHIPROUTER_URL="http://localhost:20128" # or VPS / tunnel URL
export FLAGSHIPROUTER_KEY="sk-..." # from Dashboard → Keys (only if requireApiKey=true)All requests: ${FLAGSHIPROUTER_URL}/v1/... with header Authorization: Bearer ${FLAGSHIPROUTER_KEY} (omit if auth disabled).
Verify: curl $FLAGSHIPROUTER_URL/api/health → {"ok":true}
Discover models
curl $FLAGSHIPROUTER_URL/v1/models # chat/LLM (default)
curl $FLAGSHIPROUTER_URL/v1/models/image # image-gen
curl $FLAGSHIPROUTER_URL/v1/models/tts # text-to-speech
curl $FLAGSHIPROUTER_URL/v1/models/embedding # embeddings
curl $FLAGSHIPROUTER_URL/v1/models/web # web search + fetch (entries have `kind` field)
curl $FLAGSHIPROUTER_URL/v1/models/stt # speech-to-text
curl $FLAGSHIPROUTER_URL/v1/models/image-to-text # visionUse data[].id as model field in requests. Combos appear with owned_by:"combo".
Response shape:
{ "object": "list", "data": [
{ "id": "openai/gpt-5", "object": "model", "owned_by": "openai", "created": 1735000000 },
{ "id": "tavily/search", "object": "model", "kind": "webSearch", "owned_by": "tavily", "created": 1735000000 }
]}Capability skills
When the user needs a specific capability, fetch that skill's SKILL.md from its raw URL:
Errors
- 401 → set/refresh
FLAGSHIPROUTER_KEY(Dashboard → Keys) - 400
Invalid model format→ checkmodelexists in/v1/models/<kind> - 503
All accounts unavailable→ waitretry-afteror add another provider account
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
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.

