Stream responses token-by-token using Server-Sent Events.
Enable streaming
Set stream: true on chat completion requests.
Python
stream = client.chat.completions.create(
model="hades-1.0",
messages=[{"role": "user", "content": "Tell me a story"}],
stream=True,
)
for chunk in stream:
if chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="", flush=True)
Stream Format
Each SSE line is a JSON object with choices[0].delta.content fragments until [DONE].
API Reference
Image Generation
Generate images with Hades image models using the same API key.
Endpoint
POST/v1/images/generations
Request
Pass prompt, model (hades-image or tiered ids), and optional size.
Image models
hades-1.5 and hades-2.0 image tiers map to your plan. See Pricing for daily image allowances.
Guides
Function Calling
Pass tools and optional tool_choice on chat completions (OpenAI-compatible).
Tools parameter
Define JSON-schema functions the model may invoke; handle tool calls in your app loop.
Example
See OpenAI tool calling docs — Hades accepts the same request shape at /v1/chat/completions.
Use server-side proxies; never ship hadexs_sk_ keys to browsers.
Retries
Retry idempotent requests on 429/5xx with jittered exponential backoff.
Production
Separate keys per service, monitor usage in the dashboard, and set wallet alerts before launch.
Zunos
Zunos CLI
Pro · Plus · Premium only — no free tier
Launch Zunos agents inside any terminal. zunos and hzunos are the same binary.
Runs in your current project folder. Paid plan required to authenticate and execute tasks.
The terminal is always the source of truth. Sign in with the Hadexs account that holds your Pro (or higher) subscription, then run agents against the folder you are in.
Terminal — zsh
# 1. Install the CLI$ npm install --global https://hadexs.com/downloads/cli.tgz
# 2. Sign in with your Hades account$ hzunos login you@email.com
# 3. Run a task from your project folder$ hzunos run "Research the top 10 competitors and write a report"→ connected to Hades · local execution enabled✓ report saved to ./competitor-report.md
Step by step
The frames below show the normal path through the CLI.
Node.js 18+ required. Install from the Hadexs download route — not the public npm registry.
02
Authenticate
Connect your paid Hadexs account
Terminal — login
$ hzunos login you@email.com
→ Checking entitlement…✓ Logged in as you@email.com — plan pro$ hzunos whoami
email you@email.com
plan pro
paid true
Free accounts are rejected. Credentials stay local in ~/.zunos/config.json.
03
Choose
Pick an agent for the job
Terminal — agents
$ hzunos agents
chief Orchestrator
coder Engineering
shell Terminal operator
research Analyst$ hzunos run --agent research "Summarize this repo"
Default agent is chief. Use --agent to pin coder, shell, or research.
04
Chat
Stay in an interactive shell
Terminal — REPL
$ hzunos shell --agent coder
chief ›Explain package.json scripts✓ reply streamed in this terminalcoder › exit
hzunos chat is an alias for a one-shot with the default agent. Type exit / quit to leave the REPL.
05
Complete
See each action and the saved result
Terminal — task complete
$ hzunos run "Write the competitor report to research/report.md"✓ info — sources collected✓ write_file — research/report.md✓ task complete — 2 actions Saved inside the current workspace.
Paths stay relative to the directory where you started the command.
06
Recover
Understand a plan or auth failure
Terminal — task stopped
× Paid Zunos plan required (you@email.com)→ hzunos status plan free
paid false· Open https://hadexs.com/pricing to upgrade
Check hzunos whoami, confirm the right email, then upgrade to Pro or higher.
Commands
Everything the binary understands. zunos works anywhere you type hzunos.
hzunos login [email]
Connect the Hadexs account that holds your paid plan. Saves a local credential.
hzunos logout
Removes the saved credential from ~/.zunos/config.json.
hzunos whoami
Show email, plan, and whether the account is paid. Alias: hzunos status.
hzunos agents
List built-in agents (chief, coder, shell, research).
hzunos run [--agent NAME]"task"
One-shot task in the current folder. Requires Pro or above.
hzunos chat "task"
Shortcut for run with your default agent.
hzunos shell [--agent NAME]
Interactive REPL. Leave with exit / quit or Ctrl+C. Alias: repl.
hzunos bridge
Probe the local Zunos Desktop bridge on port 8787.
hzunos config
Print local config path and non-secret settings.
hzunos config set-key gemini YOUR_KEY
Store a provider key locally for richer agent replies. Never printed by config.
hzunos config set-key glm YOUR_KEY
Optional GLM key. Keys stay on disk in your home config — not uploaded to Hadexs.
hzunos config set defaultAgent coder
Change the default agent used by chat / bare run.
hzunos ide
Print install steps for the VS Code / Cursor extension.
hzunos --help
Command help. Also: hzunos -v for version.
Agents
Orchestratorchief
Plans work, picks tools, and drives multi-step tasks in your project.
Engineeringcoder
Writes and reviews code, diffs, and refactors inside the working tree.
Terminalshell
Turns natural language into safe, approved shell commands.
Analystresearch
Summarizes repos, docs, and context for decisions.
Plans & access
Pro and above only
The CLI checks entitlement on every agent command. Free and unsigned sessions cannot run tasks.
Subscribe on Pricing, then hzunos login with that email.
Install once globally; re-run the npm install URL to update.
Prefer the project root as your cwd so relative paths stay predictable.
Pair with the IDE extension for Command Palette launches.
Desktop Mac app is separate — download from /download (also paid).
Resources
Changelog
Recent releases
API v1 chat, streaming, dashboard billing, and docs refresh — October 2026.
Resources
Community
Updates and product news on the same channels as the homepage.