cyai-client Wheel Release Usage Notes
Version 0.1.0 starts the cyai-client distribution.
Install
python3 -m venv ~/cyai-client-env
. ~/cyai-client-env/bin/activate
python -m pip install -U pip
python -m pip install cyai-client==0.1.0
cyai --help
Configure
Create ~/.cyai/config.json:
mkdir -p ~/.cyai
cat > ~/.cyai/config.json <<EOF
{
"server_url": "https://<server-host>/<base-path>",
"api_key": "<provider_api_key>",
"worker_name": "<worker-display-name>",
"model_name": "<served-model-name-from-vllm>",
"model_port": 8000,
"vllm_health_interval_sec": 30,
"vllm_health_timeout_sec": 5,
"vllm_health_failure_threshold": 2,
"debug": false
}
EOF
chmod 600 ~/.cyai/config.json
The client reads values in this order:
CLI args > environment variables > config file > defaults
Check Local vLLM
cyai check sends a tiny OpenAI-compatible chat request to the local model
server. It does not inspect GPU utilization or require nvidia-smi.
cyai check
Expected success:
[INFO][2026-07-09 10:00:00] vLLM normal
If it fails, confirm that vLLM is running and that model_name matches the
served model name from:
curl -sS http://127.0.0.1:8000/v1/models | python3 -m json.tool
Dry Run
cyai connect --dry-run
Dry run prints the derived WebSocket URL, masked PROVIDER_SIGN header,
register payload, and local vLLM check result. It does not connect to the
server and does not print the raw API key.
One-Shot Register Test
cyai connect --exit-after-register
This validates WebSocket handshake and register_ok, then exits.
Start Worker
cyai connect
Keep this process running. Logs are printed to the terminal and appended to:
~/.cyai/cyai.log
Output format:
[INFO][2026-07-09 10:00:00] connect attempt 1: wss://...
[INFO][2026-07-09 10:00:00] registered: attempt=1 worker_id=w-... status=available
After registration, the client checks local GET /v1/models every 30 seconds
by default. After two consecutive failures, it closes the current gateway
connection, keeps the process alive, and reconnects after vLLM recovers.
Failures include host, port, URL, request body, response body, status code,
response time, and reason in the log.
Migrate From cydeai-client
The old and new distributions share the internal cydeai Python namespace.
Remove the old package before installing this release:
python -m pip uninstall cydeai-client
python -m pip install cyai-client==0.1.0
cyai --help
When ~/.cyai/config.json is absent, the client can temporarily read the old
~/.cydeai/config.json and CYDEAI_* environment variables and emits a
migration warning.
Debug Server Errors
Normal mode logs only stable error categories such as http_403 or
websocket_closed_1008. To include the error description returned by the
server, run:
cyai connect --debug
Debug mode can also be enabled with "debug": true in the config file or
CYAI_DEBUG=true. Server details are normalized to one line, truncated, and
the active provider API key is masked before logging.
Release Notes Checklist
- package name:
cyai-client - CLI command:
cyai - version:
0.1.0 - install command:
python -m pip install cyai-client==0.1.0 - required Python version: Python 3.11+
- vLLM must already be running locally
- config path:
~/.cyai/config.json
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 cyai_client-0.1.0.tar.gz.
File metadata
- Download URL: cyai_client-0.1.0.tar.gz
- Upload date:
- Size: 44.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9af01948d3b0282b26cc4ac4a6a5594912a5237159613ffcd33230a90a21d827
|
|
| MD5 |
57176b584fc0a3d39e31d683ce052498
|
|
| BLAKE2b-256 |
436074f192147f75a2e54886669a44e208081ee6f2c15560c4eca79ac54f46e3
|
File details
Details for the file cyai_client-0.1.0-py3-none-any.whl.
File metadata
- Download URL: cyai_client-0.1.0-py3-none-any.whl
- Upload date:
- Size: 32.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28cfdc9eb249a44add6f70f09e80a6d61b47341fcb0309b9d244f0753b6ba1d9
|
|
| MD5 |
75a6bb23e50b8b30d433047880f6bbf7
|
|
| BLAKE2b-256 |
80d894da2af599853c64947efcee0578aeb4dccc2f63463cae37644db11460fb
|