Usage Examples
Claude Code
Claude Code is Anthropic's AI coding assistant. tmf switches its LLM provider by modifying ~/.claude/settings.json.
bash
# Switch Claude Code to DeepSeek
tmf use deepseek --app claude-code
# Switch to DeepSeek and specify a model
tmf use deepseek --app claude-code --model deepseek-chat
# Verify connectivity after switching
tmf test deepseekCodex
Codex is an open-source AI coding tool. tmf switches its LLM provider by modifying its TOML and JSON configuration files.
bash
# Switch Codex to SiliconFlow and specify a model
tmf use siliconflow --app codex --model Qwen/Qwen2.5-7B-Instruct
# Switch to OpenAI
tmf use openai --app codex --model gpt-4o
# Verify connectivity after switching
tmf test siliconflowOpenClaw
OpenClaw is an AI coding assistant that supports both OpenAI-compatible and Anthropic-compatible APIs.
bash
# Switch OpenClaw to OpenAI and specify a model
tmf use openai --app openclaw --model gpt-4o
# Switch to DeepSeek
tmf use deepseek --app openclaw
# Switch to Anthropic
tmf use claude --app openclaw --model claude-sonnet-4-20250514
# Verify connectivity after switching
tmf test openaiOpenCode
OpenCode is a terminal-based AI coding agent.
bash
# Switch OpenCode via the provider registry
tmf use deepseek --app opencode
# Point OpenCode at a self-hosted instance
tmf set opencode --baseUrl http://localhost:11434/v1 --key ollama --model llama3
# Verify connectivity after switching
tmf test deepseekHermes
Hermes is a lightweight CLI assistant.
bash
# Switch Hermes via the provider registry
tmf use deepseek --app hermes
# Point Hermes at a self-hosted instance
tmf set hermes --baseUrl http://localhost:11434/v1 --key ollama --model llama3
# Verify connectivity after switching
tmf test deepseekPi
Pi is an AI agent framework.
bash
# Switch Pi via the provider registry
tmf use deepseek --app pi
# Point Pi at a self-hosted instance
tmf set pi --baseUrl http://localhost:11434/v1 --key ollama --model llama3
# Verify connectivity after switching
tmf test deepseek