解决什么问题
ChatCoolify 不替代 Coolify,而是把官方 REST API 变成可测试的 Python 客户端和 CLI:
- 默认只读,适合 AI 清点服务器、项目、应用与部署状态;
- 写操作必须有 Coolify Token 权限并显式传递
--allow-write; - 支持 ChatEnv 配置、公开 Git 网站计划与创建、部署触发;
- 文档覆盖邀请制协作、MCP、网站、API、数据库和运维边界。
安装
python -m pip install --upgrade ChatCoolify
coolify --version
coolify --tree
支持 Python >=3.10。发布包仍叫 ChatCoolify,Python import 仍是 chatcoolify;安装后的唯一 CLI 是 coolify,不提供 chatcoolify 命令别名。
最快开始
已有平台账号可通过 coolify platform 完成本地目录上传、原生预览、显式发布及回退;平台按项目授权,普通用户不持有原生 Team token。见本地项目平台。以下保留原生 Coolify 客户端用法,其写操作仍需 --allow-write。
coolify --base-url https://<coolify-url> health
需要受保护 API 时,先在 Coolify 创建 Team-scoped 最小权限 Token,再通过 ChatEnv 配置:
chatenv init -t coolify -I
chatenv set COOLIFY_BASE_URL=https://<coolify-url>
chatenv set COOLIFY_API_TOKEN='<team-scoped-token>'
coolify overview
网站计划示例
coolify website-plan \
--project-uuid PROJECT_UUID \
--server-uuid SERVER_UUID \
--environment-uuid ENVIRONMENT_UUID \
--repository-url https://github.com/example/simple-site
省略 --domain 时,计划会请求 Coolify 从已配置的泛域名池自动分配唯一 tenant URL;需要自定义域名时才显式传入 --domain。查看完整的 真实 Git 到 HTTPS 演示。
以上为直接原生 API 的低层命令。面向普通协作者的 coolify platform 使用项目名分配可读的正式/预览子域名,owner 可在“我的网站”管理页或通过 domains set 自定义受管前缀,并用 domains apply 应用到已发布网站。新项目默认公开阅读,管理登录与访客留言分离;登录、项目列表、目录上传与明确发布流程见本地项目平台。
该命令只输出官方 API payload。真正创建资源需要同时具备 write Token 和显式写门:
coolify --allow-write website-create ...
安全边界
- 不把 Token 写入参数、仓库、日志或提示词。
- 不向普通 AI 或 CI 提供
rootToken。 - Team 角色不是虚拟机隔离;不可信代码不应共享生产 Docker 守护进程。
- 完整操作流程见 文档。
开发
python -m pip install -e '.[dev,docs,comments]'
python -m pytest -q
python -m mkdocs build --strict
python -m build
python -m twine check dist/*
许可证
MIT。
签名访客的公开只读投影
公开项目可以由受信任服务显式实现 GET / HEAD /api/public/catalog、/api/public/state 和 /api/public/projects/{id}(ID 为 1–80 个 ASCII 字母、数字、下划线或连字符)。平台仍按应用和站点绑定签名,访客上下文保持 authenticated=False,不因签名或客户端身份声明成为已登录所有者。普通私有 API 不在访客白名单中;此扩展不改变既有评论提交协议。
后端必须独立验证准确的方法、路径/查询、正文与站点 read 权限,并生成明确允许的公开字段。不要把原始项目材料、来源连接、人工私人记录或凭据直接当成公开响应。投影路径只读;私有读取、管理写入和 CSRF 仍执行各自的认证规则。项目可见性是项目级策略,切换前同时核对预览与生产范围,不以一层登录遮罩替代后端权限。
本工作树的 0.2.2+access.1 是基于已发布 0.2.2 的私有验证构建,不是 PyPI 正式发版。
Native project access management
Authenticated project owners can follow GET /__platform/manage to the existing console project anchor. Browser settings use the persisted project visibility for both production and preview, with an explicit public confirmation, stale-mode precondition and GET readback after saving. Ordinary reader accounts cannot manage access. This private build does not add or rename CLI commands.
Metadata
Release files for ChatCoolify 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| chatcoolify-0.2.3.tar.gz | 72.1 kB | With provenance | Details for chatcoolify-0.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| chatcoolify-0.2.3-py3-none-any.whl | Python 3 | none | any | Details for chatcoolify-0.2.3-py3-none-any.whl |
Total release size: 127.2 kB
Release files / chatcoolify-0.2.3.tar.gz
| Download URL | chatcoolify-0.2.3.tar.gz |
|---|---|
| Size | 72.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
11958b2262cfcf209cd56410d417dd827a8db62ef04c67a7a680a2aedadefa48
|
|
BLAKE2b-256 checksum How to use checksums |
50f17e150fc96d93b698a50641f00f152cd29cf32f11c9fbb719f0088a97479d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.
Transparency logRelease files / chatcoolify-0.2.3-py3-none-any.whl
| Download URL | chatcoolify-0.2.3-py3-none-any.whl |
|---|---|
| Size | 55.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8d7ffa391cdb78e30b35c9a3459912630645ca11980e9759a34589854b3ac482
|
|
BLAKE2b-256 checksum How to use checksums |
a7cd56d408a6d31690c80107e92d506d6bf5248db0d679d84c72523a58c2622b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.
Transparency logSecurity for ChatCoolify 0.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for chatcoolify-0.2.3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.