为命令行程序配置临时的启动环境变量,特别适合为 claude code 配置切换模型。
Project description
envdo
[ 中文 | English ]
Configure temporary environment variables for command-line programs, particularly useful for switching models in claude code.
Features
- 🚀 Temporary Environment Configuration - Set temporary environment variables for command-line programs without affecting system environment
- 🎯 Multi-Environment Management - Support multiple environment configurations for quick switching
- 🔒 Sensitive Information Protection - Automatically hide sensitive information (TOKEN, KEY, PASSWORD, etc.)
- 💡 Interactive Selection - Support interactive environment configuration selection
- 🎨 Beautiful Output - Use the rich library for clear and beautiful terminal output
Installation
pip install envdo
pip install git+https://github.com/zhangsl0/envdo.git
Configuration
Create a configuration file .envdo.json (in project directory) or ~/.envdo.json (in user directory):
{
"deepseek-3.2": {
"ANTHROPIC_MODEL": "deepseek-reasoner",
"ANTHROPIC_BASE_URL": "https://api.deepseek.com/anthropic",
"ANTHROPIC_AUTH_TOKEN": "your-token-here"
},
"glm-4.7": {
"ANTHROPIC_MODEL": "glm-4.7",
"ANTHROPIC_BASE_URL": "https://open.bigmodel.cn/api/anthropic",
"ANTHROPIC_AUTH_TOKEN": "your-token-here"
},
"claude-opus": {
"ANTHROPIC_MODEL": "claude-opus-4-5",
"ANTHROPIC_BASE_URL": "https://api.anthropic.com",
"ANTHROPIC_AUTH_TOKEN": "your-token-here",
"HTTP_PROXY": "http://127.0.0.1:7890",
"HTTPS_PROXY": "http://127.0.0.1:7890",
"NO_PROXY": "localhost,127.0.0.1"
}
}
Usage
List All Environment Configurations
envdo list
Interactive Environment Selection
envdo select <command>
Run Command with Specified Environment
envdo gpt-5.2 <command>
Other Commands
envdo -v # Show version
envdo --version
envdo h # Show help
envdo help
Configuration Notes
- Configuration file priority:
.envdo.jsonin current directory >~/.envdo.jsonin user directory - On first run, if the configuration file does not exist, an example configuration file will be automatically created
- Sensitive information (containing keywords TOKEN, KEY, PASSWORD, SECRET, AUTH, CREDENTIAL, API, etc.) will be automatically displayed as
***
License
MIT License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file envdo-0.0.4.tar.gz.
File metadata
- Download URL: envdo-0.0.4.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
796dc4c5f57dc102ea1eaef5a37a59a2cfd975b543fc724775fc440f5b1a2133
|
|
| MD5 |
8435877134e2a8e185e1e12b6d55649e
|
|
| BLAKE2b-256 |
2f1502c3f0418b985b8755df7097bc977f7e5c606e0d01a7502b33b119139e24
|
Provenance
The following attestation bundles were made for envdo-0.0.4.tar.gz:
Publisher:
release.yml on NewToolAI/envdo
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
envdo-0.0.4.tar.gz -
Subject digest:
796dc4c5f57dc102ea1eaef5a37a59a2cfd975b543fc724775fc440f5b1a2133 - Sigstore transparency entry: 804371332
- Sigstore integration time:
-
Permalink:
NewToolAI/envdo@c3ed312854dbe98c800bc2a230630b429fe943ff -
Branch / Tag:
refs/tags/v0.0.4 - Owner: https://github.com/NewToolAI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c3ed312854dbe98c800bc2a230630b429fe943ff -
Trigger Event:
release
-
Statement type:
File details
Details for the file envdo-0.0.4-py3-none-any.whl.
File metadata
- Download URL: envdo-0.0.4-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
639bb02cde79098d81993a7ae7b2845c35d73419f1068e0866189df3f3b76683
|
|
| MD5 |
d9c199de24df2c95a0e9b69a8b746def
|
|
| BLAKE2b-256 |
b82845e37abf0873c7c2655b71ae96db39c7e4d5b493d8c438cc8b30c19f432e
|
Provenance
The following attestation bundles were made for envdo-0.0.4-py3-none-any.whl:
Publisher:
release.yml on NewToolAI/envdo
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
envdo-0.0.4-py3-none-any.whl -
Subject digest:
639bb02cde79098d81993a7ae7b2845c35d73419f1068e0866189df3f3b76683 - Sigstore transparency entry: 804371333
- Sigstore integration time:
-
Permalink:
NewToolAI/envdo@c3ed312854dbe98c800bc2a230630b429fe943ff -
Branch / Tag:
refs/tags/v0.0.4 - Owner: https://github.com/NewToolAI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c3ed312854dbe98c800bc2a230630b429fe943ff -
Trigger Event:
release
-
Statement type: