Skip to main content

CLI client for Cysic decentralized AI providers

Project description

cydeai-client Wheel Release Usage Notes

Replace 0.1.6 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.6
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, then requires at least one NVIDIA GPU with compute utilization strictly greater than 10%.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: cydeai_client-0.1.6.tar.gz
  • Upload date:
  • Size: 44.2 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.6.tar.gz
Algorithm Hash digest
SHA256 c450089ee2427b6b4c512d1170ada9340b4d208032df72164c01054c97bc70d9
MD5 e6ae82ddc4c8a0b2f381b80c98ecfa20
BLAKE2b-256 f0a5250d3c98d23c303c158983febae1930224d67556636733d3a448825dd64c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cydeai_client-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 32.5 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 b3828c83856881d1b8d08241e74e5cd6502d0f2105322a1a0364d5592fb5cbf2
MD5 d6cdf08280c10d2da9a488759af2777f
BLAKE2b-256 b5f251e8223bbc9b67e9874db70de937a24b49d4c152f4e4c941316d65f990d1

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