ai-switch-cli 0.1.0__tar.gz → 0.1.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ai-switch-cli
3
- Version: 0.1.0
4
- Summary: A secure CLI profile switcher for Codex and Claude Code
3
+ Version: 0.1.2
4
+ Summary: One-command provider switching for Claude Code and Codex across multiple model vendors
5
5
  Author: ZidongS
6
6
  License: MIT
7
7
  Keywords: codex,claude-code,api,profile,cli
@@ -14,10 +14,28 @@ Description-Content-Type: text/markdown
14
14
 
15
15
  # ai-switch
16
16
 
17
- A small, secure command-line profile switcher for Codex and Claude Code. It works on headless servers and does not require administrator privileges.
17
+ ## The problem it solves
18
+
19
+ When you use multiple coding agents and multiple model providers, changing providers separately in Claude Code and Codex is repetitive and error-prone. **ai-switch updates both agents in one command.**
20
+
21
+ Choose a provider profile once, then activate it with `ai-switch use NAME`. The built-in GLM and DeepSeek presets already contain the provider-specific files, endpoints, protocols, model catalogs, and Claude Code mappings recommended by their official documentation. You only need to enter your API key. Custom OpenAI-compatible providers are supported too.
22
+
23
+ This is a secure, headless-friendly command-line tool for servers without a desktop environment or administrator privileges.
18
24
 
19
25
  ## Install
20
26
 
27
+ Install from PyPI (recommended):
28
+
29
+ ```bash
30
+ python3 -m pip install --user ai-switch-cli
31
+ ```
32
+
33
+ For a system or virtual-environment install:
34
+
35
+ ```bash
36
+ pip install ai-switch-cli
37
+ ```
38
+
21
39
  Install the latest development version directly from GitHub:
22
40
 
23
41
  ```bash
@@ -38,10 +56,22 @@ export PATH="$HOME/.local/bin:$PATH"
38
56
 
39
57
  ## Quick start
40
58
 
41
- Save the configuration currently in use:
59
+ Save the configuration currently in use as a fallback profile:
42
60
 
43
61
  ```bash
44
- ai-switch init bairuo --description "Bairuo relay for daily work"
62
+ ai-switch init default --description "Default daily configuration"
63
+ ```
64
+
65
+ Create a ready-to-use mainstream provider profile interactively:
66
+
67
+ ```bash
68
+ ai-switch add
69
+ ```
70
+
71
+ Select `glm` or `deepseek`, enter the API key, and activate the generated configuration:
72
+
73
+ ```bash
74
+ ai-switch use glm
45
75
  ```
46
76
 
47
77
  Edit `~/.codex/config.toml` and `~/.claude/settings.json` for another provider, then save that configuration as a second profile:
@@ -62,7 +92,7 @@ ai-switch add
62
92
  Update an existing profile description:
63
93
 
64
94
  ```bash
65
- ai-switch describe bairuo "Bairuo relay for daily work"
95
+ ai-switch describe default "Default daily configuration"
66
96
  ```
67
97
 
68
98
  `list` shows the active marker, profile name, configured clients, description, detected models, and endpoint hostnames. API keys are never printed.
@@ -1,9 +1,27 @@
1
1
  # ai-switch
2
2
 
3
- A small, secure command-line profile switcher for Codex and Claude Code. It works on headless servers and does not require administrator privileges.
3
+ ## The problem it solves
4
+
5
+ When you use multiple coding agents and multiple model providers, changing providers separately in Claude Code and Codex is repetitive and error-prone. **ai-switch updates both agents in one command.**
6
+
7
+ Choose a provider profile once, then activate it with `ai-switch use NAME`. The built-in GLM and DeepSeek presets already contain the provider-specific files, endpoints, protocols, model catalogs, and Claude Code mappings recommended by their official documentation. You only need to enter your API key. Custom OpenAI-compatible providers are supported too.
8
+
9
+ This is a secure, headless-friendly command-line tool for servers without a desktop environment or administrator privileges.
4
10
 
5
11
  ## Install
6
12
 
13
+ Install from PyPI (recommended):
14
+
15
+ ```bash
16
+ python3 -m pip install --user ai-switch-cli
17
+ ```
18
+
19
+ For a system or virtual-environment install:
20
+
21
+ ```bash
22
+ pip install ai-switch-cli
23
+ ```
24
+
7
25
  Install the latest development version directly from GitHub:
8
26
 
9
27
  ```bash
@@ -24,10 +42,22 @@ export PATH="$HOME/.local/bin:$PATH"
24
42
 
25
43
  ## Quick start
26
44
 
27
- Save the configuration currently in use:
45
+ Save the configuration currently in use as a fallback profile:
28
46
 
29
47
  ```bash
30
- ai-switch init bairuo --description "Bairuo relay for daily work"
48
+ ai-switch init default --description "Default daily configuration"
49
+ ```
50
+
51
+ Create a ready-to-use mainstream provider profile interactively:
52
+
53
+ ```bash
54
+ ai-switch add
55
+ ```
56
+
57
+ Select `glm` or `deepseek`, enter the API key, and activate the generated configuration:
58
+
59
+ ```bash
60
+ ai-switch use glm
31
61
  ```
32
62
 
33
63
  Edit `~/.codex/config.toml` and `~/.claude/settings.json` for another provider, then save that configuration as a second profile:
@@ -48,7 +78,7 @@ ai-switch add
48
78
  Update an existing profile description:
49
79
 
50
80
  ```bash
51
- ai-switch describe bairuo "Bairuo relay for daily work"
81
+ ai-switch describe default "Default daily configuration"
52
82
  ```
53
83
 
54
84
  `list` shows the active marker, profile name, configured clients, description, detected models, and endpoint hostnames. API keys are never printed.
@@ -140,7 +140,7 @@ def add_interactive(_):
140
140
  print(f"Created profile: {name}. Activate it with: ai-switch use {name}")
141
141
 
142
142
  def main():
143
- description = "Switch Codex and Claude Code API profiles without a GUI."
143
+ description = "Switch Claude Code and Codex between model providers in one command."
144
144
  epilog = """Examples:
145
145
  ai-switch init openai Save the current configuration as 'openai'
146
146
  ai-switch list List profiles (* marks the active one)
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ai-switch-cli
3
- Version: 0.1.0
4
- Summary: A secure CLI profile switcher for Codex and Claude Code
3
+ Version: 0.1.2
4
+ Summary: One-command provider switching for Claude Code and Codex across multiple model vendors
5
5
  Author: ZidongS
6
6
  License: MIT
7
7
  Keywords: codex,claude-code,api,profile,cli
@@ -14,10 +14,28 @@ Description-Content-Type: text/markdown
14
14
 
15
15
  # ai-switch
16
16
 
17
- A small, secure command-line profile switcher for Codex and Claude Code. It works on headless servers and does not require administrator privileges.
17
+ ## The problem it solves
18
+
19
+ When you use multiple coding agents and multiple model providers, changing providers separately in Claude Code and Codex is repetitive and error-prone. **ai-switch updates both agents in one command.**
20
+
21
+ Choose a provider profile once, then activate it with `ai-switch use NAME`. The built-in GLM and DeepSeek presets already contain the provider-specific files, endpoints, protocols, model catalogs, and Claude Code mappings recommended by their official documentation. You only need to enter your API key. Custom OpenAI-compatible providers are supported too.
22
+
23
+ This is a secure, headless-friendly command-line tool for servers without a desktop environment or administrator privileges.
18
24
 
19
25
  ## Install
20
26
 
27
+ Install from PyPI (recommended):
28
+
29
+ ```bash
30
+ python3 -m pip install --user ai-switch-cli
31
+ ```
32
+
33
+ For a system or virtual-environment install:
34
+
35
+ ```bash
36
+ pip install ai-switch-cli
37
+ ```
38
+
21
39
  Install the latest development version directly from GitHub:
22
40
 
23
41
  ```bash
@@ -38,10 +56,22 @@ export PATH="$HOME/.local/bin:$PATH"
38
56
 
39
57
  ## Quick start
40
58
 
41
- Save the configuration currently in use:
59
+ Save the configuration currently in use as a fallback profile:
42
60
 
43
61
  ```bash
44
- ai-switch init bairuo --description "Bairuo relay for daily work"
62
+ ai-switch init default --description "Default daily configuration"
63
+ ```
64
+
65
+ Create a ready-to-use mainstream provider profile interactively:
66
+
67
+ ```bash
68
+ ai-switch add
69
+ ```
70
+
71
+ Select `glm` or `deepseek`, enter the API key, and activate the generated configuration:
72
+
73
+ ```bash
74
+ ai-switch use glm
45
75
  ```
46
76
 
47
77
  Edit `~/.codex/config.toml` and `~/.claude/settings.json` for another provider, then save that configuration as a second profile:
@@ -62,7 +92,7 @@ ai-switch add
62
92
  Update an existing profile description:
63
93
 
64
94
  ```bash
65
- ai-switch describe bairuo "Bairuo relay for daily work"
95
+ ai-switch describe default "Default daily configuration"
66
96
  ```
67
97
 
68
98
  `list` shows the active marker, profile name, configured clients, description, detected models, and endpoint hostnames. API keys are never printed.
@@ -4,8 +4,8 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "ai-switch-cli"
7
- version = "0.1.0"
8
- description = "A secure CLI profile switcher for Codex and Claude Code"
7
+ version = "0.1.2"
8
+ description = "One-command provider switching for Claude Code and Codex across multiple model vendors"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
11
11
  license = {text = "MIT"}
File without changes