mcpchannel.ai
MCP Servers & AgentsMCP ClientsSkillsCLI ToolsDocs
Menu

Explore

MCP Servers & AgentsBrowse listingsMCP ClientsSkillsCLI Tools+ List yours

Account

Log inSign up free
List yoursLog in
Mmcpchannel.aiBrowseAdvertiseAboutBlogContactPrivacyTerms
© 2026 mcpchannel.ai
← Back to CLI Tools

Biya-dev/freeswitch

CLI

Details

freeswitch

tests MIT License Python 3.9+

One command. Every free AI model. Zero cost.

Tired of juggling API keys, rewriting boilerplate, and guessing which free model actually works? freeswitch gives you one CLI to switch between, chat with, and benchmark free AI models — no vendor lock-in, no credit card.

pip install fswitch-cli
fswitch use nemotron-ultra
fswitch chat "write a REST API in Python"

Features

  • Free by default — ships with 8+ free-tier models ready to go
  • One command to switch — fswitch use <alias> and you're done
  • Interactive REPL — multi-turn conversations with /switch between models mid-chat
  • Autonomous agent — fswitch agent "build a todo app" — reads/writes files, runs tests, and self-corrects!
  • Unified Provider Registry — supports OpenRouter, Google, Mistral, GitHub, Groq, and Native Anthropic (Claude)
  • Beautiful UI — smooth streaming with rich and visual ⠋ Thinking... animations
  • Benchmark mode — race all free models against each other on the same prompt
  • Local models — works with Ollama for fully offline, private AI
  • Tiny footprint — pure Python, just requests + rich, nothing heavy

Install

pip install fswitch-cli

Or from source:

git clone https://github.com/Biya-dev/freeswitch
cd freeswitch
pip install .

Setup (30 seconds)

  1. Get a free API key from your preferred provider:

    • OpenRouter (Best for variety & free tiers)
    • Anthropic (For native Claude 3.5 Sonnet)
    • Google AI Studio (Best for huge context limits)
    • Mistral AI (Best for Codestral)
    • GitHub Models (Built into GitHub, uses personal access tokens)
    • Groq Cloud (Best for speed)
  2. Tell freeswitch about it:

fswitch config --key sk-or-v1-your-key-here
# For other providers, use the --provider flag:
# fswitch config --provider anthropic --key sk-ant-...
# fswitch config --provider google --key AIzaSy...
# fswitch config --provider groq --key gsk_...

That's it. You're ready.

Usage

List available models

fswitch list

Switch model

fswitch use nemotron-ultra

Chat (single prompt)

fswitch chat "explain quicksort in 3 lines"
fswitch chat -m deepseek-r1 "solve this leetcode problem: two sum"

Interactive REPL (multi-turn)

fswitch repl

Inside the REPL:

  • Type naturally to chat
  • /switch deepseek-r1 to change model mid-conversation
  • /models to list available models
  • exit to quit

Autonomous Agent

fswitch agent "create a Python script that fetches weather data"
fswitch agent -m qwen3-coder "refactor this project to use async"

The agent can:

  • Read and write files on your machine
  • Run shell commands (with your approval)
  • Complete multi-step coding tasks autonomously
  • Self-Correct: Pass the --test flag, and if the tests fail, the AI will automatically fix the code until they pass!

Example of autonomous self-correction:

fswitch agent "create a calculator function" --test "pytest tests/test_calc.py"

Every action requires your confirmation before executing.

Benchmark all free models

fswitch benchmark
fswitch benchmark --prompt "write a binary search in Rust"

Races every free model on the same prompt and shows you which is fastest.

Supported Models

AliasProviderModelFreeBest for
nemotron-ultraOpenRouterNVIDIA Nemotron 3 Ultra 550BYesReasoning, orchestration
nemotron-superOpenRouterNVIDIA Nemotron 3 Super 120BYesGeneral & agentic workflows
qwen3-coderOpenRouterQwen3 CoderYesCode generation, repo-scale context
gemma-4OpenRouterGoogle Gemma 4 31BYesGeneral multimodal instruction
lagunaOpenRouterPoolside Laguna M.1YesCoding-agent experiments
laguna-xsOpenRouterPoolside Laguna XS 2.1YesFast coding-agent tasks
deepseek-r1OpenRouterDeepSeek R1YesReasoning + math
auto-freeOpenRouterAuto-Free RouterYesAuto-routes to best free model
gemini-2.5-flashGoogleGemini 2.5 FlashYesMassive 1M context, 1500 req/day
gemini-2.5-proGoogleGemini 2.5 ProYesHigh intelligence, 50 req/day
codestralMistralCodestralYesNative model for code generation
github-gpt4oGitHubGPT-4oYesGitHub integrated access
github-llama3.3GitHubLlama 3.3 70B InstructYesExtremely capable open weights
groq-llama3.1-8bGroqLlama 3.1 8BYesUltra-fast LPU inference
groq-llama3.3-70bGroqLlama 3.3 70BYesFast and extremely smart
claude-3.5-sonnetAnthropicClaude 3.5 SonnetNoComplex agentic tasks (Native Endpoint)
ollama-llama3OllamaLlama 3 (local)YesFully offline

Local Models with Ollama

Install Ollama, pull a model, and use it completely offline:

ollama pull llama3
fswitch use ollama-llama3
fswitch chat "hello local model!"

Environment Variables

You can also set your API key via environment variable instead of fswitch config:

export OPENROUTER_API_KEY="sk-or-v1-..."

Contributing

PRs welcome! Here's how to help:

  • Add a model: edit freeswitch/models.py — just add a new dict entry
  • Add a provider: add a new function in freeswitch/client.py
  • Report issues: open an issue

Please open an issue first for bigger changes.

License

MIT — do whatever you want with it.


If this saved you time, drop a star on the repo!

View on GitHub →

Ratings & Reviews

No reviews yet. Be the first to rate this tool.

Sign in to leave a review.

Mmcpchannel.aiBrowseAdvertiseAboutBlogContactPrivacyTerms
© 2026 mcpchannel.ai
mcpchannel.ai
MCP Servers & AgentsMCP ClientsSkillsCLI ToolsDocs
Menu

Explore

MCP Servers & AgentsBrowse listingsMCP ClientsSkillsCLI Tools+ List yours

Account

Log inSign up free
List yoursLog in