Skip to main content

CoreThink CLI

The CoreThink Workbench from your terminal. Build environments, train programs around small models, check them against the base model, release them and call them — everything the Workbench console does, scriptable.

pipx install corethink       # or: uv tool install corethink
corethink login              # opens your browser to approve this terminal
corethink env list

Python 3.10 or newer, on Linux, macOS and Windows. Docs: guide · every command

Install

Where How
Your machine pipx install corethink or uv tool install corethink
A virtual environment, conda, Docker or CI pip install corethink
Upgrade pipx upgrade corethink, uv tool upgrade corethink or pip install -U corethink

error: externally-managed-environment from pip means your system Python (recent Ubuntu, Debian, Fedora, Homebrew) does not take packages: use pipx or uv as above. On Ubuntu: sudo apt install pipx && pipx ensurepath.

Quick start

corethink login                                     # sign in (approve the code in your browser)
corethink hub list                                  # starter programs that already passed their final check
corethink hub start employee-leave-requests         # copy one into your workspace; prints its environment id
corethink train start <environment> --limit 20      # train it, spending at most $20
corethink train watch <run>                         # follow it live: Data → Mine → Synthesise → Verify → Ship
corethink train show <run>                          # base model vs trained program on held-out tasks
corethink endpoint keys create <environment> --name my-app
corethink endpoint call <environment> "Can Ana take 3 days off next week?"

Every command has --help, and corethink --help lists them all.

What you can do

Area Commands
Account login, logout, whoami, token, profile
Workspaces and team workspace (list, use, create, members, invite, roles, audit, credit)
Environments env (init, create, check, show, versions, pull, push, archive), capture (live traffic → tasks)
Connections connection (HTTP/OpenAPI, MCP, databases, your own code; secrets, tests, health)
Hub and library hub (starters), library (every step training has learned)
Training train (start in Automatic or Advanced mode, --from an earlier run, test the base model, settings, estimate, list, show, watch, curve, tasks, logs, cancel, resume, archive), models
Serving endpoint (releases, canaries, keys, usage, call a program, code snippets)
Billing billing (balance, usage, buy credit)
Archive archive (restore or delete for good)
Admins admin (CoreThink staff only)
Anything else corethink api GET /api/v1/... calls any Workbench API route

Training modes and hyperparameters

corethink train start ENV uses Automatic mode: recommended settings, and you set the spending limit. For Advanced mode, pass any setting with --set, or a JSON file with --settings:

corethink train settings                       # every setting, its default and its allowed range
corethink train start payroll --method search \
  --set search_iterations=8 --set minibatch=30 --capacity spot_then_on_demand --limit 25

Values are checked against the same bounds the Workbench enforces before anything is submitted.

Scripts and CI

Make a token once (corethink token create github-actions, or in the Workbench: Settings › CLI sign-ins) and set it as CORETHINK_TOKEN. No login or config file is needed then:

- run: pipx install corethink
- run: corethink train start payroll --limit 10 --yes --watch   # fails the step if the run fails
  env:
    CORETHINK_TOKEN: ${{ secrets.CORETHINK_TOKEN }}
  • --json on any command prints machine-readable output to stdout (messages go to stderr).
  • --yes skips confirmations; without it, a non-interactive run refuses instead of guessing.
  • Exit codes: 0 ok, 1 failed, 2 bad usage, 3 not signed in, 4 not allowed, 5 not found, 6 conflict, 7 busy or unavailable (try again), 130 interrupted.

Settings

corethink login stores a revocable token in ~/.config/corethink/cli.json (on Windows %APPDATA%\CoreThink), readable only by you. Revoke any sign-in in the Workbench under Settings › CLI sign-ins, or with corethink logout.

Variable Meaning
CORETHINK_TOKEN A CLI token; overrides the stored sign-in
CORETHINK_URL Another Workbench (default https://workbench.corethink.ai)
CORETHINK_PROFILE Which profile to use (corethink profile list)
CORETHINK_CONFIG_DIR Another config folder

Shell completion: corethink --install-completion.

Help

Guide: https://corethink.ai/docs/workbench-cli · Every command: https://corethink.ai/docs/workbench-cli-reference · Workbench docs: https://workbench.corethink.ai/app/docs · Support: support@corethink.ai

Metadata

Release files for corethink 1.0.3

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

Source distribution (sdist)

Source distribution for corethink 1.0.3
File Size Uploaded Provenance Actions
corethink-1.0.3.tar.gz 290.0 kB With provenance Details for corethink-1.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for corethink 1.0.3
File Interpreter ABI Platform Actions
corethink-1.0.3-py3-none-any.whl Python 3 none any Details for corethink-1.0.3-py3-none-any.whl

Total release size: 555.1 kB

Release files / corethink-1.0.3.tar.gz

Download URL corethink-1.0.3.tar.gz
Size 290.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d18246c2ca0cdcb0f3cf6fa49092c73716c88260e2faba1e5ceaf4447254d25b
BLAKE2b-256 checksum
How to use checksums
daba805c2f4d6fb28d76798ab40a295c80abfb97aa78a1780df5da3039871f39
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 3, 2026.

Transparency log

Release files / corethink-1.0.3-py3-none-any.whl

Download URL corethink-1.0.3-py3-none-any.whl
Size 265.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1e8bf5da9ed0916265eee467e6d75956c5157e4468caf7c77824f6d75b075550
BLAKE2b-256 checksum
How to use checksums
cf7d21d57a661caedf76547609157ff86fe63bafc7ca3bbd94e15fde73a63050
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 3, 2026.

Transparency log

Security for corethink 1.0.3

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 corethink-1.0.3.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 Nov 3, 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.

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