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, import, 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

Your own data

corethink env import turns data in another shape into an environment's files: chat logs (OpenAI or Anthropic messages with tool calls, request and response logs, ShareGPT), tables of tasks with an answer column (CSV, TSV, .xlsx, JSON Lines, a JSON array) and folders of text files such as support tickets. It writes IMPORT.md beside them with what was guessed. When the shape is not clear, a small sample (at most 20 records, long text cut) is sent to an AI model to map it, after you agree; --no-ai never sends one.

corethink env import support-chats.jsonl --name "Support chat"   # writes support-chats-environment/
corethink env create support-chats-environment

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

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

Built distribution (wheel)

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

Total release size: 603.3 kB

Release files / corethink-1.0.7.tar.gz

Download URL corethink-1.0.7.tar.gz
Size 317.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ec174a3362af63c00a780b8c357bb0bd2b11e12fde11727da3cf47c9f22edc65
BLAKE2b-256 checksum
How to use checksums
d013aea67fd82e73d9224768432aba7b23f0095ceb2718f965a08e755732506d
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 4, 2026.

Transparency log

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

Download URL corethink-1.0.7-py3-none-any.whl
Size 286.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
186bdefd5f57633e75787fbbe1963c2fb611d1659c181819bbd748f7a02bffb1
BLAKE2b-256 checksum
How to use checksums
087f700142f2ab9cb740db7ce1b06ea42478c3dc86cb0d07a6100c397e4718ee
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 4, 2026.

Transparency log

Security for corethink 1.0.7

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.7.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 4, 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