Skip to main content

CLI client for Cysic decentralized AI providers

Project description

cydeai-client Wheel Release Usage Notes

Replace 0.1.5 with the released version.

Install

python3 -m venv ~/cydeai-client-env
. ~/cydeai-client-env/bin/activate
python -m pip install -U pip
python -m pip install cydeai-client==0.1.5
cydeai --help

Configure

Create ~/.cydeai/config.json:

mkdir -p ~/.cydeai
cat > ~/.cydeai/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
}
EOF
chmod 600 ~/.cydeai/config.json

The client reads values in this order:

CLI args > environment variables > config file > defaults

Check Local vLLM

cydeai check sends a tiny OpenAI-compatible chat request to local vLLM.

cydeai 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

cydeai 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

cydeai connect --exit-after-register

This validates WebSocket handshake and register_ok, then exits.

Start Worker

cydeai connect

Keep this process running. Logs are printed to the terminal and appended to:

~/.cydeai/cydeai.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.

Release Notes Checklist

  • package name: cydeai-client
  • CLI command: cydeai
  • version: 0.1.5
  • install command: python -m pip install cydeai-client==0.1.5
  • required Python version: Python 3.11+
  • vLLM must already be running locally
  • config path: ~/.cydeai/config.json

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cydeai_client-0.1.5.tar.gz (42.6 kB view details)

Uploaded Source

Built Distribution

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

cydeai_client-0.1.5-py3-none-any.whl (31.3 kB view details)

Uploaded Python 3

File details

Details for the file cydeai_client-0.1.5.tar.gz.

File metadata

  • Download URL: cydeai_client-0.1.5.tar.gz
  • Upload date:
  • Size: 42.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for cydeai_client-0.1.5.tar.gz
Algorithm Hash digest
SHA256 eb239d5c9ead03228de033e83701f21c66b6b5b347bd9f1d93da28d1a99b21fa
MD5 566124cbc5a97d6129c3d04085b68dd8
BLAKE2b-256 89bbeb7ee62f8d32e2c7c5922fbc761d1cbc4c47599db3fe7356ad8998149132

See more details on using hashes here.

File details

Details for the file cydeai_client-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: cydeai_client-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 31.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for cydeai_client-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 7698f717a42f056b9176603ac9a23618f2d88bea83dc20964a0af710a80421c4
MD5 ef767e58cd4ed4cf8aef3ec6b24e72c6
BLAKE2b-256 df00511ddf154235a3e1ca157134c2954a1a8f2411b528cf5e5f1d41d3d06975

See more details on using hashes here.

Supported by

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