Skip to main content

CLI client for Cysic decentralized AI providers

Project description

cydeai-client Wheel Release Usage Notes

Replace 0.1.7 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.7
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 the local model server. It does not inspect GPU utilization or require nvidia-smi.

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.7
  • install command: python -m pip install cydeai-client==0.1.7
  • 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.7.tar.gz (43.0 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.7-py3-none-any.whl (31.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cydeai_client-0.1.7.tar.gz
  • Upload date:
  • Size: 43.0 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.7.tar.gz
Algorithm Hash digest
SHA256 ec8f2361addb5ca4b537703254093637b226397c268be1b31ded76e5add175a3
MD5 11ed48f3a9f485402467c7965b01af0b
BLAKE2b-256 64d286e51b26f4f9b90c91556dd1d2a738d3c42956ba257de6c698cd8bf8711b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cydeai_client-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 31.4 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 d342b76592b3cab2beb6390a2a865791305db1d66b0f5f221f97c9478849c1da
MD5 92bb1e5926914e2def31e108c4e38770
BLAKE2b-256 52a3c64e5875dc922c69b011b77584116b22563034e7af75511d899e7e3b49dc

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