Skip to main content

aas

一个基于 OpenAI tool-calling 的 CLI 智能体,可通过工具调用读写文件、执行代码。

安装

pip install aasai

装完在任何目录运行 aas 或 aas --web。更新用 pip install -U aasai。

Windows:装到系统 Python(官方安装器已把 Scripts 加入 PATH)时命令直接可用,无需额外配置;若用 pip install --user 避免污染系统环境,需一次性把 %APPDATA%\Python\Python314\Scripts 加入用户 PATH。备用入口 python -m aas.main 不依赖 PATH。

配置

配置文件为 ~/.aas/config.json(用户目录,与源码分离)。首次使用前创建:

{
  "MODEL": "deepseek-chat",
  "DEEPSEEK_API_KEY": "你的密钥",
  "DEEPSEEK_BASE_URL": "https://api.deepseek.com/v1",
  "DEEPSEEK_MODELS": "deepseek-chat"
}
  • MODEL:当前模型名(必设,须在某供应商 {P}_MODELS 中登记)
  • 每个供应商三项:{P}_API_KEY / {P}_BASE_URL / {P}_MODELS(模型名逗号分隔)
  • P = 供应商名大写、连字符转下划线,如 ark-plan → ARK_PLAN

使用

终端模式:

aas

启动后输入内容对话;exit 退出。会话命令:/new 新会话、/list 列出、/switch N 切换、/model 切换默认模型。

Web 界面模式:

aas --web

浏览器打开 http://127.0.0.1:8765,获得带 Markdown 渲染、流式输出、工具调用可见、会话切换的聊天界面。

开发者

pip install -e .        # 可编辑安装,改代码即生效
  • 配置与会话存于 ~/.aas/,与源码分离,删除源码不影响数据。
  • 新增工具:新建 aas/tools/xxx.py → 在 aas/tools/__init__.py 加一行 → 生效。
  • 设计决策遵循 CONSTITUTION.md。

依赖

  • Python >= 3.11
  • openai
  • pydantic
  • ipython

发布

.\scripts\release.ps1 0.2.3

发布需要 .pypi-token(被 .gitignore 忽略)。

Metadata

Release files for aasai 0.2.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aasai 0.2.6
File Size Uploaded
aasai-0.2.6.tar.gz 45.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aasai 0.2.6
File Interpreter ABI Platform
aasai-0.2.6-py3-none-any.whl Python 3 none any Details

Total release size: 81.4 kB

Release files / aasai-0.2.6.tar.gz

Download URL aasai-0.2.6.tar.gz
Size 45.6 kB
Tags Source
SHA-256 checksum
How to use checksums
5dff36dd5c604da21cca2947455340145278896415bd2b80ee6005c9c21e9226
BLAKE2b-256 checksum
How to use checksums
b561a5f349722bc0098af83d6e9b8f0b18a4536737e0bf989771db1fd9ad34d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / aasai-0.2.6-py3-none-any.whl

Download URL aasai-0.2.6-py3-none-any.whl
Size 35.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
45d971e7dd547f3dba82bd6faaac4b261ad77d7c182ceba3feb27d81ae55d8db
BLAKE2b-256 checksum
How to use checksums
33701696b28cd2fc67b69cf8680cc8f7d4e96e2a543eff7164b32c2f27e7e87d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release history Release notifications | RSS feed

0.2.9

2 release files

This release

0.2.6 This release

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page