Skip to main content

Critique API CLI

The official command-line client for creating, inspecting, modifying, deleting, and invoking private Critique API research endpoints.

The CLI is optional. Critique's agent skill and HTTP API work from projects in any language without Python. Install this package as a standalone tool when a terminal interface is convenient; do not add it to an application's runtime dependencies unless that application directly needs it.

Install

With pipx:

pipx install critique-api-cli

With uv:

uv tool install critique-api-cli

Set the API key in the environment:

export CRITIQUE_API_KEY="your-api-key"

Create a key at Billing & API Keys. Never paste an API key into source code, command arguments, URLs, or commits.

Usage

# Create an endpoint
critique-api create \
  --prompt "For a company name, return its latest funding round, investors, date, amount, and primary-source citations."

# List or inspect endpoints
critique-api list
critique-api get 42

# Modify only the intended fields
critique-api update 42 \
  --stub latest-company-funding \
  --inputs '[{"name":"company","type":"string"}]' \
  --output '{"company":"string","amount":"number","investors":[{"name":"string"}]}'

# Invoke the generated endpoint
critique-api run latest-company-funding \
  --data '{"company":"OpenAI"}'

# Permanently delete an endpoint
critique-api delete 42 --yes

JSON arguments may be literal JSON or @path/to/file.json.

Use CRITIQUE_BASE_URL only to target a non-production deployment.

Development

python -m venv .venv
source .venv/bin/activate
python -m pip install -e '.[dev]'
pytest
python -m build
python -m twine check dist/*

Releases

Releases use PyPI Trusted Publishing and do not require a stored API token.

  1. Update the version in pyproject.toml and src/critique_api_cli/__init__.py.
  2. Merge the release commit to main.
  3. Create and push the matching tag, such as v0.1.1.
  4. The publish workflow builds, verifies, and uploads the distribution.

Before the first release, configure a pending GitHub Actions publisher on PyPI with these exact values:

Field Value
PyPI project name critique-api-cli
GitHub owner parthh01
GitHub repository critique-api-cli
Workflow filename publish.yml
GitHub environment pypi

The pending publisher creates the PyPI project when the first release workflow succeeds; no PyPI API token or repository secret is needed.

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

critique_api_cli-0.1.1.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

critique_api_cli-0.1.1-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file critique_api_cli-0.1.1.tar.gz.

File metadata

  • Download URL: critique_api_cli-0.1.1.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for critique_api_cli-0.1.1.tar.gz
Algorithm Hash digest
SHA256 42781e641486cc936c6c8e21552a35d620b9cd266e69c3cd50fc4e6b1ee1a4d7
MD5 c82cd9e4e6e69c318b14bc979f7f430f
BLAKE2b-256 35a1d79cce70b5b956107b6cbae6145bd05460defa028311670e3355f59f5128

See more details on using hashes here.

Provenance

The following attestation bundles were made for critique_api_cli-0.1.1.tar.gz:

Publisher: publish.yml on parthh01/critique-api-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file critique_api_cli-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for critique_api_cli-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bce9baab024e2e61edd5f6789e8673590e6eef6fdcb57443cee902205532f36d
MD5 6bef95166a60efc60d7dae4ee790c149
BLAKE2b-256 8bc45aaa5b2d06570e3b21cbf6d8f52c5801e49db603aea85e4f5c2da75b5e4a

See more details on using hashes here.

Provenance

The following attestation bundles were made for critique_api_cli-0.1.1-py3-none-any.whl:

Publisher: publish.yml on parthh01/critique-api-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 files

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