Skip to main content

casebench-ee

Casebench's team server: the workbench with sign-in, five roles, an audit log and admin pages (decision 0058).

Licensed under the Elastic License 2.0. Everything outside ee/ is Apache-2.0.

Run it

Install it from PyPI, with the casebench release of the same version, and start it in a folder holding your runs, suites and casebench.yaml:

pip install casebench-ee
CASEBENCH_DATABASE_URL=postgresql://casebench:secret@db.internal/casebench \
CASEBENCH_PUBLIC_URL=https://casebench.firm.example \
casebench-team serve --host 0.0.0.0

Without CASEBENCH_DATABASE_URL it keeps the team in .casebench/team.db, SQLite, which is enough for a trial.

Or build the container image from the repository's root, and run it with Postgres and a folder holding your runs, suites and casebench.yaml:

docker build -f ee/Dockerfile -t casebench-team .
docker run -p 8080:8080 \
  -e CASEBENCH_DATABASE_URL=postgresql://casebench:secret@db.internal/casebench \
  -e CASEBENCH_PUBLIC_URL=https://casebench.firm.example \
  -v /srv/casebench:/data \
  casebench-team

The first start prints a one-time setup code to the log. Open the public URL, enter the code, and create the first admin with a password of 12 characters or more that is no default.

Settings

Variable What it sets
CASEBENCH_DATABASE_URL Postgres for a team; SQLite works for a trial
CASEBENCH_PUBLIC_URL where people open the app; sign-in links point here
CASEBENCH_SMTP_HOST, _PORT, _USERNAME, _PASSWORD, _FROM, _SECURITY the SMTP server that sends sign-in links; _SECURITY is starttls (default), tls or none. Without it, the admin copies each link from the Team page
CASEBENCH_GOOGLE_CLIENT_ID, _SECRET sign-in with Google, for invited emails Google has verified
CASEBENCH_MICROSOFT_CLIENT_ID, _SECRET sign-in with Microsoft, for invited emails Microsoft vouches for: personal accounts, or work accounts whose domain is verified
CASEBENCH_RUNS, CASEBENCH_SUITES, CASEBENCH_CONFIG where runs, suites and casebench.yaml are; /data/... in the image

Register the Google or Microsoft client with <public URL>/auth/google/callback or <public URL>/auth/microsoft/callback as its redirect address.

Erasing a team

casebench-team erase --database URL --runs-dir DIR --suites DIR --confirm NAME removes every table in the team's database, with the audit log, and everything in its run and suite folders. NAME is the database's name, typed back. What is erased cannot be restored.

Organisations

A server keeps each organisation's rows apart in Postgres itself, with row-level security, and each organisation's runs and suites in folders of its own (decision 0066). A self-hosted server has one organisation and needs nothing set. A service serving several adds them with Team.add_organisation, and must connect as a Postgres role that is no superuser and has no BYPASSRLS; otherwise the server refuses a second organisation. casebench_ee.hosting.erase_organisation removes one organisation's rows and folders and leaves the others.

From an engineer's machine

Create an API key with the engineer role on the Team page, set it as CASEBENCH_CLOUD_KEY on the engineer's machine, and name the server in casebench.yaml under cloud: url:. Then casebench push, casebench invite and casebench pull work against it (decision 0059).

Develop

uv sync installs casebench-ee with the core. npm run build:team in workbench/ builds the team's web app into ee/casebench_ee/static/. uv run pytest ee/team_tests runs its tests; set CASEBENCH_TEST_POSTGRES to a Postgres server's URL to run the Postgres ones too.

Metadata

Release files for casebench-ee 0.5.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 casebench-ee 0.5.1
File Size Uploaded Provenance Actions
casebench_ee-0.5.1.tar.gz 630.9 kB With provenance Details for casebench_ee-0.5.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for casebench-ee 0.5.1
File Interpreter ABI Platform Actions
casebench_ee-0.5.1-py3-none-any.whl Python 3 none any Details for casebench_ee-0.5.1-py3-none-any.whl

Total release size: 1.3 MB

Release files / casebench_ee-0.5.1.tar.gz

Download URL casebench_ee-0.5.1.tar.gz
Size 630.9 kB
Tags Source
SHA-256 checksum
How to use checksums
567d3888605c283a1269d31c3db8149581597a1bf2830aeade48d1aca0e799bc
BLAKE2b-256 checksum
How to use checksums
3573c365738966a98f53630cda34535f854416c07075fc6a69a7cb450504ff7b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 21, 2026.

Transparency log

Release files / casebench_ee-0.5.1-py3-none-any.whl

Download URL casebench_ee-0.5.1-py3-none-any.whl
Size 635.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
897d4cb9b1f4890e7d7413c01ae20152fc70e93e63ebcceda704833a195c36f3
BLAKE2b-256 checksum
How to use checksums
c10bb3ad5505b308bdf52d4c15387e128e78a56da85696367dc7bfd84462fe1c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 21, 2026.

Transparency log

Security for casebench-ee 0.5.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 casebench_ee-0.5.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 Oct 21, 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