Assumes FreeToken is installed — see install.md.
ft serve --model ~/models/Qwen3.6-35B-A3B--model also takes a Hugging Face repo id. Everything else — dtype, attention
and MoE backends, cache sizes, tool-call and reasoning parsers — resolves from
the checkpoint and the GPU; see cli.md for the flags. The server is
ready when the log reaches API server is ready to serve on 127.0.0.1:1919.
Check what is being served:
curl http://127.0.0.1:1919/v1/modelsThen use that id as the model field:
curl http://127.0.0.1:1919/v1/chat/completions \
-H 'Content-Type: application/json' \
-d '{
"model": "Qwen3.6-35B-A3B",
"messages": [{"role": "user", "content": "What is a Mixture-of-Experts model?"}],
"max_tokens": 256,
"stream": true
}'FreeToken serves the OpenAI API (/v1/chat/completions, /v1/responses,
/v1/models) and the Anthropic API (/v1/messages,
/v1/messages/count_tokens), so a client library for either works by pointing
its base URL at the server.
A simple TUI to interact with the server:
ft shell # attach to the server above
ft shell --model ~/models/Qwen3.6-35B-A3B # start an engine and chat, one process/help lists the in-shell commands. Attach mode needs no GPU, so it also drives
a server on another machine (--server URL).
ft launch claude # claude / codex / dsh / hermes / openclaw / opencodeWrites that agent's provider config, installs its CLI if missing, and starts it
against your server. --dry-run previews the changes.