Skip to content
Agentmart
Submit a tool

flow-router-chat

Chat / code generation via flow_router using OpenAI /v1/chat/completions or Anthropic /v1/messages or Gemini /v1beta/models/...:generateContent with streaming…

Skill by namphamdev

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/namphamdev-flow-router-chat

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Chat / code generation via flow_router using OpenAI /v1/chat/completions or Anthropic /v1/messages or Gemini /v1beta/models/...:generateContent with streaming + auto-fallback combos.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/flow-router-chat

What's inside

Skill name
flow-router-chat
Description
Chat / code generation via flow_router using OpenAI /v1/chat/completions or Anthropic /v1/messages or Gemini /v1beta/models/...:generateContent with streaming + auto-fallback combos.
License
MIT
Instructions
53 lines in SKILL.md · view on GitHub

Before installing

  • Instructions call the network

Files (1)

  • SKILL.md

SKILL.md (first lines)

# flow_router — Chat

Requires `FLOW_ROUTER_URL` (and `FLOW_ROUTER_KEY` if auth enabled). See `flow-router/SKILL.md` for setup.

## Endpoints

- `POST $FLOW_ROUTER_URL/v1/chat/completions` — OpenAI format
- `POST $FLOW_ROUTER_URL/v1/messages` — Anthropic format
- `POST $FLOW_ROUTER_URL/v1beta/models/{model}:generateContent` — Gemini format
- `POST $FLOW_ROUTER_URL/v1/responses` — OpenAI Responses API

## Discover

```bash
curl $FLOW_ROUTER_URL/v1/models | jq '.data[].id'
curl "$FLOW_ROUTER_URL/v1/models/info?id=anthropic/claude-haiku-4-5"
```

Combos (e.g. `vip`, `mycodex`) auto-fallback through multiple providers.

## OpenAI format

```bash
curl -X POST $FLOW_ROUTER_URL/v1/chat/completions \
  -H "Authorization: Bearer $FLOW_ROUTER_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-haiku-4-5",
    "messages": [{"role":"user","content":"Say hi"}],
    "stream": false
  }'
```

Set `"stream": true` to receive SSE chunks (delta format).

## Anthropic format

```bash
curl -X POST $FLOW_ROUTER_URL/v1/messages \
  -H "Authorization: Bearer $FLOW_ROUTER_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-haiku-4-5",
    "max_tokens": 1024,
    "messages": [{"role":"user","content":"Say hi"}]
  }'
```

## Token saver (RTK)

When `RtkTokenSaver` is enabled in settings, tool-result messages over 4 KB are auto-compressed by format (git diff, build output, grep, tree, etc.) before being forwarded upstream — typical 40-80% reduction for agent loops.

From namphamdev/flowork_Router, MIT.

Signals

Stars
0
Forks
2
Open issues
0
Last commit (this folder)
May 28, 2026 (5 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from namphamdev

Cite this page

flow-router-chat skill. Agent Mart. https://agentmart.dev/skills/namphamdev-flow-router-chat (last updated 2026-10-24)