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.1

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.1
File Size Uploaded Provenance Actions
corethink-1.0.1.tar.gz 260.6 kB With provenance Details for corethink-1.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 496.9 kB

Release files / corethink-1.0.1.tar.gz

Download URL corethink-1.0.1.tar.gz
Size 260.6 kB
Tags Source
SHA-256 checksum
How to use checksums
cef8adb2099b497fef4dcfad8009d81a45da5c61496eabb0905e33e144699d17
BLAKE2b-256 checksum
How to use checksums
73ba4a86aeb652be9c82b6709a1122009f6f49db9dc0423233cd1e042bff672c
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.1-py3-none-any.whl

Download URL corethink-1.0.1-py3-none-any.whl
Size 236.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6c2b802b4646c23f29f9c7b7d6ead62c227294daad92f69a80a2acc8bf7c0ae0
BLAKE2b-256 checksum
How to use checksums
645396e2d90687604a09b3cd053344dfaefdae19137534cf3c75a629efc73831
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.1

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.1.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