valcore
A small, self-contained local tool for developing, improving, and running agentic evaluations. Author evaluators in a web UI, run them over datasets from the command line, and gate CI on their accuracy.
Install
With Homebrew:
brew install duncankmckinnon/tap/valcore
Or as a uv tool:
uv tool install valcore
Either way you get an valcore command on your PATH.
Quickstart
Store your gateway API key, then start the app:
valcore config set-key sk-...
valcore serve
serve starts the web UI and API on http://127.0.0.1:8000 and opens a browser
(pass --no-browser to skip that, or --port to bind elsewhere). Author evaluators
and datasets in the UI, then drive runs from the command line.
The gateway key is stored in ~/.valcore/config.toml (mode 0600) and exported to
pydantic-ai as PYDANTIC_AI_GATEWAY_API_KEY when a command runs. An already-exported
environment variable always wins over the stored key. Run valcore config set-key
with no argument to be prompted without echoing the key.
Commands
| Command | What it does |
|---|---|
valcore serve |
Serve the web UI and API (--port, --host, --no-browser). |
valcore list <evaluators|datasets|runs> |
List resources as a table or, with --json, as JSON. |
valcore run <evaluator> <dataset> |
Run an evaluator version over a dataset. |
valcore export <evaluator> |
Export an evaluator version as a standalone Python script. |
valcore config set-key [KEY] |
Store the gateway API key in the config file. |
valcore config get |
Show the current config (the key is masked unless --show-key). |
valcore config path |
Print the path to the config file. |
valcore config edit |
Open the config file in $EDITOR. |
valcore version |
Print the installed valcore version. |
Evaluators, versions, and datasets are addressable by name or by a unique id prefix;
an ambiguous value is an error that lists the candidates. Pass --db PATH on the group
to point at a SQLite database other than the default under ~/.valcore.
run accepts --version (defaults to the active version), --kind, --concurrency,
--watch (one line per completed row), --json, and --min-accuracy. Progress goes to
stderr and results go to stdout, so redirecting stdout yields clean JSON. The CLI talks
to SQLite directly, so run works whether or not serve is up.
Using valcore in CI
run --json emits a single object with run metadata, metrics, and per-row scores, and
--min-accuracy turns a validation run into a pass/fail gate:
valcore run my-evaluator my-dataset \
--kind validation \
--min-accuracy 0.9 \
--json > run.json
Exit codes:
| Exit | Meaning |
|---|---|
0 |
The run finished and, if --min-accuracy was set, accuracy met the threshold. |
1 |
The run failed, or a domain error occurred (printed as error: <message> on stderr). |
2 |
Accuracy fell below --min-accuracy. |
--min-accuracy requires a categorical accuracy metric; numeric or unlabeled runs have
no accuracy and error rather than silently passing.
~/.valcore
All state lives under ~/.valcore (mode 0700). Set VALCORE_HOME to relocate it.
~/.valcore/ 0700
config.toml 0600 gateway key + defaults
valcore.db SQLite (plus -wal, -shm)
logs/ serve logs
Development
uv sync # install dependencies into a local venv
uv run pytest # run the test suite
The web UI is a Vite + React SPA under web/:
cd web
npm install
npm run dev # Vite dev server, proxying the API
To build the SPA into the wheel, run npm run build and copy web/dist/ into
src/valcore/web_dist/ before uv build; the release workflow does this automatically
on a v* tag.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file valcore-0.0.1.tar.gz.
File metadata
- Download URL: valcore-0.0.1.tar.gz
- Upload date:
- Size: 8.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
90716444fd525676b066eb0c961f9a7b1f4312d388ec890dba82b860eaf3d24f
|
|
| MD5 |
2b78bab807043441ddbde3cdb0f1ed14
|
|
| BLAKE2b-256 |
10df9f28157154c3535d06a2d5c3d48d83d759173e952c05873b7ff7740e57fa
|
Provenance
The following attestation bundles were made for valcore-0.0.1.tar.gz:
Publisher:
release.yml on duncankmckinnon/valcore
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
valcore-0.0.1.tar.gz -
Subject digest:
90716444fd525676b066eb0c961f9a7b1f4312d388ec890dba82b860eaf3d24f - Sigstore transparency entry: 2308472424
- Sigstore integration time:
-
Permalink:
duncankmckinnon/valcore@094bdd16fc18d7cd618bee7741c7faaee6a594c1 -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/duncankmckinnon
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@094bdd16fc18d7cd618bee7741c7faaee6a594c1 -
Trigger Event:
push
-
Statement type:
File details
Details for the file valcore-0.0.1-py3-none-any.whl.
File metadata
- Download URL: valcore-0.0.1-py3-none-any.whl
- Upload date:
- Size: 125.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b7311d1ab827c8a85ef428190fb17917fe8836b38d39cb8bfb96ca110b431310
|
|
| MD5 |
613755cc46d6af7d488d667a63094efa
|
|
| BLAKE2b-256 |
da67609c54003fd666c8398fddd4e99118bff725335da6aedf5bd7e7e3dec98d
|
Provenance
The following attestation bundles were made for valcore-0.0.1-py3-none-any.whl:
Publisher:
release.yml on duncankmckinnon/valcore
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
valcore-0.0.1-py3-none-any.whl -
Subject digest:
b7311d1ab827c8a85ef428190fb17917fe8836b38d39cb8bfb96ca110b431310 - Sigstore transparency entry: 2308472490
- Sigstore integration time:
-
Permalink:
duncankmckinnon/valcore@094bdd16fc18d7cd618bee7741c7faaee6a594c1 -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/duncankmckinnon
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@094bdd16fc18d7cd618bee7741c7faaee6a594c1 -
Trigger Event:
push
-
Statement type: