Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Codelux

English | 简体中文

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

English | 简体中文

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

codelux-0.1.0a3.tar.gz (46.4 kB view details)

Uploaded Source

Built Distribution

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

codelux-0.1.0a3-py3-none-any.whl (53.9 kB view details)

Uploaded Python 3

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

Hashes for codelux-0.1.0a3.tar.gz
Algorithm Hash digest
SHA256 a21e07dfdacb0373b5205975d377ae0de0e7c8150f586e289c9ad33a5d783043
MD5 eed6343ef3745d52acdb0f00a5592cf1
BLAKE2b-256 ad3f03d6c42ff4fc31dee7b040b5355fc9edb086550254d672fcc14bb4ddaadb

See more details on using hashes here.

Provenance

The following attestation bundles were made for codelux-0.1.0a3.tar.gz:

Publisher: publish-pypi.yml on codelux-io/codelux

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for codelux-0.1.0a3-py3-none-any.whl
Algorithm Hash digest
SHA256 b5aad73907e031d576968c25fc8134b87a15bd61907656fc95780fa74c6d3e4f
MD5 39020f5814195f58d108049d65e5c0f5
BLAKE2b-256 10f2e35f23b121967a2ab8a67509c7c6cee59234e9c04bf25935d4b22ec8f6d7

See more details on using hashes here.

Provenance

The following attestation bundles were made for codelux-0.1.0a3-py3-none-any.whl:

Publisher: publish-pypi.yml on codelux-io/codelux

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.0a3 This release

2 files

0.1.0a2

2 files

Supported by

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