This release is a pre-release and may not be stable for production use.
Codelux
Codelux is a command-line tool for managing LLM Provider configurations across AI coding assistants. It provides explicit Provider switching, recoverable local changes, and encrypted cross-machine synchronization.
Website and Provider API: https://codelux.io
Capabilities
- Provider management for Claude Code and Codex
- Read-only configuration and health inspection
- Snapshot-backed restoration of official configurations
- Fail-closed recovery for incomplete local transactions
- Encrypted offline export/import and OpenSSH-based synchronization
- Explicit conflict handling for synchronized configuration and session data
Security model
Codelux stores Provider credentials in local files protected by operating-system file permissions. These files are not encrypted at rest. They are not protected from processes running as the same user, privileged administrators, malware, compromised accounts, backups, or physical disk access.
Cross-machine archives are encrypted with a user-provided password. Active client configuration is not applied on another machine unless the user explicitly requests it.
See SECURITY.md for vulnerability reporting and security boundaries.
Installation
Codelux is currently in alpha and has not been published to the production Python Package Index. Install the development checkout with:
python3 -m pip install -e .
Usage
codelux version
codelux status --client claude
codelux list
codelux add codelux-io --url https://codelux.io --client claude
codelux switch codelux-io --client claude
codelux switch official --client claude
codelux recover --dry-run
Synchronization commands support explicit content selection:
codelux sync export --output codelux-sync.enc --providers --sessions
codelux sync import codelux-sync.enc
codelux sync push --ssh user@host.example --providers
codelux sync pull --ssh user@host.example --providers
Use --help on any command to inspect its current options and safety prompts.
Development
python3 -m pip install . pytest==7.4.4 coverage==7.10.7
coverage run -m pytest -q
coverage report
python scripts/check_public_repository.py
License
MIT
Codelux
Codelux 是一个用于在多种 AI 编程助手之间管理大模型 Provider 配置的命令行工具,提供 明确的 Provider 切换、可恢复的本地修改和加密跨机器同步。
官网与 Provider API: https://codelux.io
主要能力
- 管理 Claude Code 和 Codex 的 Provider
- 只读检查配置与健康状态
- 通过快照恢复官方配置
- 对未完成的本地事务执行失败关闭式恢复
- 加密离线导入导出和基于 OpenSSH 的同步
- 对同步配置和会话数据执行明确的冲突处理
安全模型
Codelux 将 Provider 凭据保存在受操作系统文件权限保护的本地文件中。这些文件并未进行 静态加密,无法防御以同一用户身份运行的进程、特权管理员、恶意软件、账号失陷、备份 泄露或物理磁盘访问。
跨机器归档使用用户提供的密码加密。除非用户明确要求,否则不会在另一台机器上应用 活动客户端配置。
漏洞报告方式和详细安全边界见 SECURITY.zh-CN.md。
安装
Codelux 当前处于 Alpha 阶段,尚未发布到正式 Python Package Index。开发环境可从当前 代码目录安装:
python3 -m pip install -e .
使用方法
codelux version
codelux status --client claude
codelux list
codelux add codelux-io --url https://codelux.io --client claude
codelux switch codelux-io --client claude
codelux switch official --client claude
codelux recover --dry-run
同步命令支持明确选择传输内容:
codelux sync export --output codelux-sync.enc --providers --sessions
codelux sync import codelux-sync.enc
codelux sync push --ssh user@host.example --providers
codelux sync pull --ssh user@host.example --providers
可以对任意命令使用 --help 查看当前选项和安全提示。
开发验证
python3 -m pip install . pytest==7.4.4 coverage==7.10.7
coverage run -m pytest -q
coverage report
python scripts/check_public_repository.py
许可证
MIT
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 codelux-0.1.0a3.tar.gz.
File metadata
- Download URL: codelux-0.1.0a3.tar.gz
- Upload date:
- Size: 46.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a21e07dfdacb0373b5205975d377ae0de0e7c8150f586e289c9ad33a5d783043
|
|
| MD5 |
eed6343ef3745d52acdb0f00a5592cf1
|
|
| BLAKE2b-256 |
ad3f03d6c42ff4fc31dee7b040b5355fc9edb086550254d672fcc14bb4ddaadb
|
Provenance
The following attestation bundles were made for codelux-0.1.0a3.tar.gz:
Publisher:
publish-pypi.yml on codelux-io/codelux
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
codelux-0.1.0a3.tar.gz -
Subject digest:
a21e07dfdacb0373b5205975d377ae0de0e7c8150f586e289c9ad33a5d783043 - Sigstore transparency entry: 2517539027
- Sigstore integration time:
-
Permalink:
codelux-io/codelux@32fea0885eafae8318bdb95ae42219b7173ff612 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/codelux-io
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@32fea0885eafae8318bdb95ae42219b7173ff612 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file codelux-0.1.0a3-py3-none-any.whl.
File metadata
- Download URL: codelux-0.1.0a3-py3-none-any.whl
- Upload date:
- Size: 53.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5aad73907e031d576968c25fc8134b87a15bd61907656fc95780fa74c6d3e4f
|
|
| MD5 |
39020f5814195f58d108049d65e5c0f5
|
|
| BLAKE2b-256 |
10f2e35f23b121967a2ab8a67509c7c6cee59234e9c04bf25935d4b22ec8f6d7
|
Provenance
The following attestation bundles were made for codelux-0.1.0a3-py3-none-any.whl:
Publisher:
publish-pypi.yml on codelux-io/codelux
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
codelux-0.1.0a3-py3-none-any.whl -
Subject digest:
b5aad73907e031d576968c25fc8134b87a15bd61907656fc95780fa74c6d3e4f - Sigstore transparency entry: 2517539093
- Sigstore integration time:
-
Permalink:
codelux-io/codelux@32fea0885eafae8318bdb95ae42219b7173ff612 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/codelux-io
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@32fea0885eafae8318bdb95ae42219b7173ff612 -
Trigger Event:
workflow_dispatch
-
Statement type: