ai-switch-cli 0.1.1__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.
- {ai_switch_cli-0.1.1 → ai_switch_cli-0.1.2}/PKG-INFO +22 -4
- {ai_switch_cli-0.1.1 → ai_switch_cli-0.1.2}/README.md +20 -2
- {ai_switch_cli-0.1.1 → ai_switch_cli-0.1.2}/ai_switch.py +1 -1
- {ai_switch_cli-0.1.1 → ai_switch_cli-0.1.2}/ai_switch_cli.egg-info/PKG-INFO +22 -4
- {ai_switch_cli-0.1.1 → ai_switch_cli-0.1.2}/pyproject.toml +2 -2
- {ai_switch_cli-0.1.1 → ai_switch_cli-0.1.2}/ai_switch_cli.egg-info/SOURCES.txt +0 -0
- {ai_switch_cli-0.1.1 → ai_switch_cli-0.1.2}/ai_switch_cli.egg-info/dependency_links.txt +0 -0
- {ai_switch_cli-0.1.1 → ai_switch_cli-0.1.2}/ai_switch_cli.egg-info/entry_points.txt +0 -0
- {ai_switch_cli-0.1.1 → ai_switch_cli-0.1.2}/ai_switch_cli.egg-info/top_level.txt +0 -0
- {ai_switch_cli-0.1.1 → ai_switch_cli-0.1.2}/setup.cfg +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ai-switch-cli
|
|
3
|
-
Version: 0.1.
|
|
4
|
-
Summary:
|
|
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,7 +14,13 @@ Description-Content-Type: text/markdown
|
|
|
14
14
|
|
|
15
15
|
# ai-switch
|
|
16
16
|
|
|
17
|
-
|
|
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
|
|
|
@@ -50,12 +56,24 @@ export PATH="$HOME/.local/bin:$PATH"
|
|
|
50
56
|
|
|
51
57
|
## Quick start
|
|
52
58
|
|
|
53
|
-
Save the configuration currently in use:
|
|
59
|
+
Save the configuration currently in use as a fallback profile:
|
|
54
60
|
|
|
55
61
|
```bash
|
|
56
62
|
ai-switch init default --description "Default daily configuration"
|
|
57
63
|
```
|
|
58
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
|
|
75
|
+
```
|
|
76
|
+
|
|
59
77
|
Edit `~/.codex/config.toml` and `~/.claude/settings.json` for another provider, then save that configuration as a second profile:
|
|
60
78
|
|
|
61
79
|
```bash
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
# ai-switch
|
|
2
2
|
|
|
3
|
-
|
|
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
|
|
|
@@ -36,12 +42,24 @@ export PATH="$HOME/.local/bin:$PATH"
|
|
|
36
42
|
|
|
37
43
|
## Quick start
|
|
38
44
|
|
|
39
|
-
Save the configuration currently in use:
|
|
45
|
+
Save the configuration currently in use as a fallback profile:
|
|
40
46
|
|
|
41
47
|
```bash
|
|
42
48
|
ai-switch init default --description "Default daily configuration"
|
|
43
49
|
```
|
|
44
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
|
|
61
|
+
```
|
|
62
|
+
|
|
45
63
|
Edit `~/.codex/config.toml` and `~/.claude/settings.json` for another provider, then save that configuration as a second profile:
|
|
46
64
|
|
|
47
65
|
```bash
|
|
@@ -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
|
|
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.
|
|
4
|
-
Summary:
|
|
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,7 +14,13 @@ Description-Content-Type: text/markdown
|
|
|
14
14
|
|
|
15
15
|
# ai-switch
|
|
16
16
|
|
|
17
|
-
|
|
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
|
|
|
@@ -50,12 +56,24 @@ export PATH="$HOME/.local/bin:$PATH"
|
|
|
50
56
|
|
|
51
57
|
## Quick start
|
|
52
58
|
|
|
53
|
-
Save the configuration currently in use:
|
|
59
|
+
Save the configuration currently in use as a fallback profile:
|
|
54
60
|
|
|
55
61
|
```bash
|
|
56
62
|
ai-switch init default --description "Default daily configuration"
|
|
57
63
|
```
|
|
58
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
|
|
75
|
+
```
|
|
76
|
+
|
|
59
77
|
Edit `~/.codex/config.toml` and `~/.claude/settings.json` for another provider, then save that configuration as a second profile:
|
|
60
78
|
|
|
61
79
|
```bash
|
|
@@ -4,8 +4,8 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "ai-switch-cli"
|
|
7
|
-
version = "0.1.
|
|
8
|
-
description = "
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|