Skip to main content

Shell-GPT 自动安装和配置工具:对接 SiliconFlow API,全程国内镜像,专为教学场景设计

Project description

auto-shell-gpt

Shell-GPT 自动安装和配置工具,专门为国内教学场景优化。

接入 SiliconFlow 的 LLM API,全程走国内镜像源,在严格白名单网络下也能装上。

特性

  • 🐍 Portable Python 3.12 — 从国内大学镜像(USTC/NJU/TUNA/SJTU/BFSU/HFUT)下载独立 Python,绕开系统 Python 版本不兼容
  • 🌐 多源 PyPI failover — 8 个国内 PyPI 镜像自动按速度排序,挂一个自动切下一个
  • 🧠 真实模型可用性检测 — 并发 ping 候选模型,只保留实际能调用的
  • 🎯 白名单模型 — 9 个 SiliconFlow 免费模型(DeepSeek-V4-Flash、Qwen3.6、GLM-4.5、Step-3.5 等)
  • 🔒 安全 — 配置文件自动 chmod 600,API key 不会被同机器其他用户读到
  • 🧹 一键卸载 — 完全恢复安装前状态,不留痕

快速开始

pip install -i https://mirrors.aliyun.com/pypi/simple auto-shell-gpt
auto-shell-gpt --auto --key sk-YOUR_SILICONFLOW_KEY

装完之后:

sgpt --code 'solve fizz buzz problem using python'
sgpt --shell '帮我生成10个file开头的文件'

切换模型 / 重设 key / 查看配置

auto-shell-gpt           # 进入交互菜单

卸载

auto-shell-gpt --uninstall

会清理:~/.config/shell_gpt//tmp/chat_cache_*/tmp/cache_*~/.cache/shell_gpt~/.local/share/sgpt-portable-python/~/.local/bin/sgpt

注册获取 API key

新用户用以下链接注册可获得双倍免费额度:

🔗 https://cloud.siliconflow.cn/i/pnTWTpiB

详细文档 & 源码

https://github.com/JohnnyChen1113/biotrainee

License

MIT

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

auto_shell_gpt-1.11.1.tar.gz (22.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

auto_shell_gpt-1.11.1-py3-none-any.whl (22.8 kB view details)

Uploaded Python 3

File details

Details for the file auto_shell_gpt-1.11.1.tar.gz.

File metadata

  • Download URL: auto_shell_gpt-1.11.1.tar.gz
  • Upload date:
  • Size: 22.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for auto_shell_gpt-1.11.1.tar.gz
Algorithm Hash digest
SHA256 5a60ff81edeed094357c77c851f50aec8ee1f2c4e9584d32b7c9c6a6484c2ab3
MD5 864aeedc7ccd83543e850c2b74d622f0
BLAKE2b-256 531aea6e2e0d0326da6626ed1bf1398cea8eee191e93d1529f7038be8738e538

See more details on using hashes here.

File details

Details for the file auto_shell_gpt-1.11.1-py3-none-any.whl.

File metadata

File hashes

Hashes for auto_shell_gpt-1.11.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ccfe09c92b84bdcea0e9329d879f2a1dff09788a5f4ebf02c4501370a9e68ef8
MD5 5d79435fb2f7af5fac3c3a09a0216c96
BLAKE2b-256 5128909e59a9beebbd2b0871763fedffd4486bef12b597e330e19656d01b40c8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page