Skip to main content

quantcentral-cli

PyPI version Python versions License: Apache-2.0

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

Metadata

Release files for quantcentral-cli 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for quantcentral-cli 0.1.0
File Size Uploaded Provenance Actions
quantcentral_cli-0.1.0.tar.gz 15.7 kB With provenance Details for quantcentral_cli-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for quantcentral-cli 0.1.0
File Interpreter ABI Platform Actions
quantcentral_cli-0.1.0-py3-none-any.whl Python 3 none any Details for quantcentral_cli-0.1.0-py3-none-any.whl

Total release size: 29.0 kB

Release files / quantcentral_cli-0.1.0.tar.gz

Download URL quantcentral_cli-0.1.0.tar.gz
Size 15.7 kB
Tags Source
SHA-256 checksum
How to use checksums
1b38ed6bf0578276f03ba37a71d48ed970180120e5ff144b80db494084a6e632
BLAKE2b-256 checksum
How to use checksums
c97c862e7f93bb6178753816568e6061111726c3d404e773db7e6e1193b70730
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 8, 2026.

Transparency log

Release files / quantcentral_cli-0.1.0-py3-none-any.whl

Download URL quantcentral_cli-0.1.0-py3-none-any.whl
Size 13.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4d6a6a476ee1116156cda45b10417a7d457967f77bc1bb339491bdd670802fcd
BLAKE2b-256 checksum
How to use checksums
8573192234abd1ed8d4470d6b901ebf2a58ebe8867cc7464b961fb055f456377
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 8, 2026.

Transparency log

Security for quantcentral-cli 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for quantcentral_cli-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 8, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page