Agentsw banner
tchivs tchivs

Agentsw

Development community

Description

CLI provider switcher for coding agents: manage OpenAI/Anthropic-protocol providers in one place and sync them, with models.dev metadata, into 9 agents — Claude Code, Codex, omp, pi, prime-agent, opencode, Hermes, WorkBuddy, DeepSeek Harness. Imports from cc-switch. Non-destructive: your hand-tuned settings survive.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

agentsw

**One provider, every coding agent — from the terminal.**

A CLI that keeps your OpenAI- and Anthropic-protocol providers — base URL, key, model list, metadata — in one place and writes the active one into nine agents' own config files, without touching the settings you hand-tuned.

[![npm version](https://img.shields.io/npm/v/agentsw?logo=npm&logoColor=white)](https://www.npmjs.com/package/agentsw) [![CI](https://img.shields.io/github/actions/workflow/status/tchivs/agentsw/ci.yml?branch=main&logo=github&logoColor=white&label=CI)](https://github.com/tchivs/agentsw/actions/workflows/ci.yml) [![node version](https://img.shields.io/node/v/agentsw?logo=nodedotjs&logoColor=white)](#install) [![license](https://img.shields.io/npm/l/agentsw?color=blue)](./LICENSE)

[Install](#install) · [Quick start](#quick-start) · [Supported apps](#supported-apps) · [Commands](#commands) · [简体中文](./README.zh-CN.md)

$ asw use vfing -m glm-5.3-flash
switching to vfing (openai) · default model glm-5.3-flash

skip claude    Claude Code does not support openai-protocol providers
ok   codex     ~/.codex/config.toml, ~/.codex/auth.json
               backup: ~/.config/agentsw/backups/config.toml.2026-08-31T15-58-24-678Z
ok   omp       ~/.omp/agent/models.yml
               select in omp with: omp --model vfing/glm-5.3-flash
skip pi        pi not detected (pass --apps pi to force)
ok   opencode  ~/.config/opencode/opencode.json
ok   dsh       ~/.dsh/settings.yaml, ~/.dsh/.credentials.yaml
               select in dsh with the model picker, or run: dsh web

`agentsw` and the short `asw` are the same binary.

Why a CLI

  • It runs where a desktop app cannot. Headless servers, containers, devcontainers, CI. npx agentsw use myproxy -a codex,omp is one line in a provisioning script; nine GUI clicks are not.
  • --dry-run prints diffs. Review what a switch will write before it writes it, or pipe it into a code review. Every fil