Folkbench Switch: a Tauri client that rewrites Claude Code and Codex configs to point at API relays
AI API 中转站评测排行与切换工具:实测可用率、延迟与价格 · Open-source AI API relay benchmark, rankings & switcher for Claude Code / Codex
At a glance
- What is it?
- Folkbench/folkbench holds the source of the folkbench.com blog and of Folkbench Switch, a desktop app that swaps the Base URL and API Key in the config files of Claude Code, Codex, Gemini CLI and others. The relay rankings live on the website, not in this repository.
- Who is it for?
- Install Folkbench Switch if you already use more than one API relay or an official line with Claude Code or Codex and are tired of editing settings.json and config.toml by hand. Skip it if you are on Linux, since the README lists only macOS and Windows installers, or if you expect the ranking data to be inspectable here, because the benchmark runs on folkbench.com.
- Can I use it commercially?
- Check first. The repository uses a licence we do not classify automatically, so read its LICENSE file before any commercial use.
- Is it still maintained?
- Yes. The repository last received commits 6 days ago.
- What is it written in?
- Mainly Rust, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 7, 2026, and from our analysis. They are not legal advice.
Star history
- Folkbench/folkbench3,762 ★ · +1,784
| Repository | 2026-10-19 | 2026-11-07 |
|---|---|---|
| Folkbench/folkbench | 2k | 3.8k |
1,784 Stars in the last 19 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
The repository is a blog and a desktop client under one roof
The root package.json is named folkbench-blog, runs Astro ^7.2.10 and ships scripts such as dev, build:blog and preview on port 8341. That is the source of the folkbench.com blog. The second half is apps/switch/, the code for Folkbench Switch, a desktop client built with Tauri and Rust. Scripts such as switch:dev, build:switch:web and test:switch:rust reach into it.
The README is written mainly in Chinese, with separate English, Japanese and Spanish versions linked at the top. It states the split plainly: folkbench.com continuously tests AI relay sites and publishes availability, response time and price, while this repository is the companion client that writes a chosen route into the configuration of Claude Code, Codex and similar tools.
The benchmark itself is not here. No probe code or raw results are described in the README, so the rankings can only be read on the website.
One click swaps the Base URL and API Key in the target tool's config
The core idea of Switch is to keep several services saved, each with a Base URL and an API Key, and apply any of them to a target tool with a click. The README presents this as the end of editing configuration by hand, and says you can switch and restore at any time.
Before a change is written, a config diff preview shows what will be modified. The README adds that switching only overwrites connection parameters and keeps your other custom settings. Switch has been adapted to each tool's config path and field conventions instead of treating every tool the same.
This matters because the tools disagree about where connection settings live. A single app that knows the differences saves the reader from learning three config formats. What the README does not say is how a failed write is handled, or whether a backup file is kept when the preview is skipped.
Where Switch writes: settings.json, config.toml, .env and a dozen more
The README gives a table of target files. Claude Code is written at ~/.claude/settings.json, where the Base URL goes in and the Token and API Key credential types are handled. Codex is written at ~/.codex/config.toml with a custom provider. Gemini CLI gets ~/.gemini/.env and settings.json, with environment variables and the authentication method written together. Aider uses ~/.aider.conf.yml for model and endpoint parameters.
OpenCode is configured under ~/.config/opencode/. Kimi CLI is handled in ~/.kimi-code or ~/.kimi, so both old and new directory layouts work. DeepSeek Harness uses ~/.dsh/. The final row lists MiniMax Code, Qwen Code, Grok Build, Hermes and Pi as under continuous maintenance.
That last row is a promise and not a guarantee. The README names no per-tool tested versions, so a tool that changes its config format can break its row until Switch is updated.
Codex keeps its ChatGPT OAuth login while a relay is active
One behaviour is described in detail: when you switch Codex to a third-party service, Switch stashes the official ChatGPT OAuth credentials safely and restores them without loss when you switch back to the official line. The same custom-provider approach is used in config.toml.
That is the reason to prefer this tool over copying a block into config.toml yourself. A hand edit that replaces the credential section could cost you the login, and the README says Switch is built to avoid that.
The README gives no description of where the stashed credentials sit on disk or how they are protected. The privacy statement is narrower: all API Keys and configuration are stored only on the local device, are not uploaded to the cloud, and the app runs fully offline. Taken at face value, that includes the keys for every relay you add, so the machine's own security is what protects them.
Probe data and token estimates sit inside the client
Switch can show each site's public real-time availability and latency inside the client, so you can check a route before switching to it. The numbers come from the Folkbench probes behind folkbench.com, which means the client needs network access for that panel even though switching itself is local.
A second feature is a local usage estimate. It counts token consumption per session and turns it into a cost figure using public reference unit prices. It is an estimate based on published prices. A relay that charges by its own multiplier, which is how the sponsor blurbs describe pricing, will bill something different.
The README does not say how often the probe data refreshes, which models are probed, or how a site's success rate is calculated. The website ranking page splits into an overall board, a stability board and a price-performance board. The README also names five models with their own leaderboards: GPT 6 Sol, GPT 6 Astra, Claude Fable 5.1, Grok 4.7 and DeepSeek V4.1 Flash.
Installers for macOS and Windows only, still in beta
Downloads are on the GitHub Releases page. macOS gets a .dmg for Apple Silicon or Intel, and Windows gets an .exe for x64. SHA256 checksum files sit beside the installers. The README mentions no Linux package and no command-line install.
The release tags carry the beta label. switch-v0.1.0-beta.4 appeared on 17 October 2026, beta.5 on 22 October and beta.6 on 1 November. The last push to the repository was on 1 November 2026, and it is not archived.
Three betas in about two weeks suggests the config writers for individual tools are still being changed. Treat the first install as a trial: read the diff preview each time and keep your own copy of ~/.claude/settings.json and ~/.codex/config.toml until you trust the behaviour.
Three license regimes and sponsors who appear beside the rankings
GitHub reports the repository's license as NOASSERTION, and a LICENSE.md sits at the root; check LICENSE.md and the README's license section for which terms cover which part.
The README also carries a sponsor section. Four relays, Modelflare, CheapAI, IKunCode and FluxLane, are shown with promotional descriptions and links that go through folkbench.com/go redirects. A comment in the README preserves their original referral URLs from before the redirects went live, and another comment reserves a top-tier sponsor slot once tiers exist.
In practice that means a ranking site funded in part by the relays it ranks. The README says sponsors support the continuing evaluation. It does not say whether sponsorship affects placement, so a reader should compare the sponsored sites against the methodology on folkbench.com before trusting any single position.
Editorial conclusion
Install Folkbench Switch if you already use more than one API relay or an official line with Claude Code or Codex and are tired of editing settings.json and config.toml by hand. Skip it if you are on Linux, since the README lists only macOS and Windows installers, or if you expect the ranking data to be inspectable here, because the benchmark runs on folkbench.com. Before switching a real key, use the config diff preview and confirm the SHA256 checksum of the download from the Releases page.
Frequently asked questions
What is Folkbench Switch?
It is an open-source desktop client built with Tauri and Rust that lets you switch between API relays and official routes in one click. It rewrites the Base URL and API Key in the config files of Claude Code, Codex, Gemini CLI and other tools.
Which operating systems does Folkbench Switch support?
The README lists macOS (Apple Silicon and Intel, as a .dmg) and Windows (x64, as an .exe). Installers and SHA256 checksum files are on the GitHub Releases page.
Does Folkbench Switch upload my API keys?
No, according to the README. All API Keys and configuration are stored only on the local device and the app runs fully offline for that purpose.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/folkbench-folkbench)Star history chart for your README
[](https://hysenlabs.com/projects/folkbench-folkbench)Was this useful?