Quantcentral.ai command-line client (qc) — manage backtest runs, results, and credentials from the terminal.
Project description
quantcentral-cli
Command-line client for the Quantcentral.ai platform — manage backtest runs, results, and credentials from the terminal.
Part of the Quantcentral.ai ecosystem.
Install
pip install quantcentral-cli
Requires Python 3.12+. Provides a single executable: qc.
Quickstart
# 1. Point qc at your control-api deployment (default: http://localhost:8080).
qc auth set-url https://api.quantcentral.ai
# 2. Save your bearer token. Issued by control-api / SSO.
qc auth login # prompts (hidden input)
# 3. Verify.
qc auth status
# 4. Submit a run.
qc run create ./run-bundle.json --start
# 5. Watch.
qc run list
qc run show <run-id>
# 6. Pull results.
qc run result <run-id> --output result.json
Commands
| Command | Purpose |
|---|---|
qc auth login |
Store the bearer token (JWT) issued by control-api. |
qc auth logout |
Remove the stored token. |
qc auth status |
Show the configured API URL and the JWT subject (no signature check). |
qc auth set-url <url> |
Persist the control-api URL. |
qc run create <bundle.json> |
POST a run bundle to /v1/runs. Use --start to start immediately. |
qc run start <run-id> |
Start a created run. |
qc run cancel <run-id> |
Cancel a running run. |
qc run list |
List recent runs (Rich table). |
qc run show <run-id> |
Print run metadata as JSON. |
qc run result <run-id> |
Fetch the result JSON; --output PATH writes to file. |
Configuration
| Path / env | Purpose |
|---|---|
~/.config/quantcentral/token |
Bearer token (mode 600). |
~/.config/quantcentral/config.toml |
[api] url = "..." |
$QC_CONFIG_DIR |
Override config directory (useful for tests / CI). |
$QC_API_URL |
Override API base URL (takes precedence over disk). |
$QC_TOKEN |
Override bearer token (takes precedence over disk). |
Roadmap
v0.1.0 ships the auth and run subcommand families — enough to drive a full
backtest lifecycle against control-api. Future versions are planned to add:
| Subcommand | Status |
|---|---|
qc strategy scaffold/validate/push |
v0.2 — scaffolds strategies using quantcentral-sdk's StrategyBase. |
qc optim sweep/show |
v0.2 — parameter optimization sweeps. |
qc feed list/test |
v0.3 — data feed inspection. |
qc broker list/test |
v0.3 — broker connectivity check. |
qc mcp inspect |
v0.3 — local MCP tool introspection. |
License
Apache-2.0 — see LICENSE for details. Attribution requirements in NOTICE.
Development
git clone git@github.com:QuantCentral-ai/quantcentral-cli.git
cd quantcentral-cli
python -m venv venv && source venv/bin/activate
pip install -e ".[dev]"
pytest
Tracking: https://github.com/QuantCentral-ai/quantcentral-planning
Project details
Release history Release notifications | RSS feed
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 quantcentral_cli-0.1.0.tar.gz.
File metadata
- Download URL: quantcentral_cli-0.1.0.tar.gz
- Upload date:
- Size: 15.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b38ed6bf0578276f03ba37a71d48ed970180120e5ff144b80db494084a6e632
|
|
| MD5 |
fa3ec77f655b33089ad8335d33744812
|
|
| BLAKE2b-256 |
c97c862e7f93bb6178753816568e6061111726c3d404e773db7e6e1193b70730
|
Provenance
The following attestation bundles were made for quantcentral_cli-0.1.0.tar.gz:
Publisher:
release.yml on QuantCentral-ai/quantcentral-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
quantcentral_cli-0.1.0.tar.gz -
Subject digest:
1b38ed6bf0578276f03ba37a71d48ed970180120e5ff144b80db494084a6e632 - Sigstore transparency entry: 1472261648
- Sigstore integration time:
-
Permalink:
QuantCentral-ai/quantcentral-cli@b60ec91aee4d13f855f6c55fe9e4180ffc3ed4e2 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/QuantCentral-ai
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b60ec91aee4d13f855f6c55fe9e4180ffc3ed4e2 -
Trigger Event:
push
-
Statement type:
File details
Details for the file quantcentral_cli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: quantcentral_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 13.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d6a6a476ee1116156cda45b10417a7d457967f77bc1bb339491bdd670802fcd
|
|
| MD5 |
5e02fc94d957a0a2e1a6e7955af794cd
|
|
| BLAKE2b-256 |
8573192234abd1ed8d4470d6b901ebf2a58ebe8867cc7464b961fb055f456377
|
Provenance
The following attestation bundles were made for quantcentral_cli-0.1.0-py3-none-any.whl:
Publisher:
release.yml on QuantCentral-ai/quantcentral-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
quantcentral_cli-0.1.0-py3-none-any.whl -
Subject digest:
4d6a6a476ee1116156cda45b10417a7d457967f77bc1bb339491bdd670802fcd - Sigstore transparency entry: 1472261752
- Sigstore integration time:
-
Permalink:
QuantCentral-ai/quantcentral-cli@b60ec91aee4d13f855f6c55fe9e4180ffc3ed4e2 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/QuantCentral-ai
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b60ec91aee4d13f855f6c55fe9e4180ffc3ed4e2 -
Trigger Event:
push
-
Statement type: