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.
pip install corethink # or: pipx install corethink / 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.
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: pip install corethink
- run: corethink train start payroll --limit 10 --yes --json > run.json
env:
CORETHINK_TOKEN: ${{ secrets.CORETHINK_TOKEN }}
--jsonon any command prints machine-readable output to stdout (messages go to stderr).--yesskips confirmations; without it, a non-interactive run refuses instead of guessing.- Exit codes:
0ok,1failed,2bad usage,3not signed in,4not allowed,5not found,6conflict,7busy or unavailable (try again),130interrupted.
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
Docs: https://workbench.corethink.ai/app/docs · Support: support@corethink.ai
Metadata
Release files for corethink 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| corethink-1.0.0.tar.gz | 260.1 kB | With provenance | Details for corethink-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| corethink-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for corethink-1.0.0-py3-none-any.whl |
Total release size: 496.0 kB
Release files / corethink-1.0.0.tar.gz
| Download URL | corethink-1.0.0.tar.gz |
|---|---|
| Size | 260.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1fe173df4e34f5a22d88265be81b410f5318fa72542935505f6787458d4bd85c
|
|
BLAKE2b-256 checksum How to use checksums |
ae324aa35f23fc743ec9b60d08bef9e77cf39e4487650f103e07420e1dacdab9
|
| 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 logRelease files / corethink-1.0.0-py3-none-any.whl
| Download URL | corethink-1.0.0-py3-none-any.whl |
|---|---|
| Size | 236.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
52d13e04c00b904e3ea0704315fc21a3c5342e7541b377473e83dc2b756d6256
|
|
BLAKE2b-256 checksum How to use checksums |
4f484cc2b9b56dee97da5c9435157a9eb5e2c74f8d00caac7864b855029cfc7b
|
| 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 logSecurity for corethink 1.0.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.
Attestation for corethink-1.0.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 Nov 3, 2026.
Transparency logA 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.