Skip to main content Switch to mobile version tamarind-cli 0.8.2 Command-line interface AND Python SDK for the Tamarind Bio platform — submit, monitor, and download protein/molecule jobs from your terminal, scripts, or an AI agent.
pip install tamarind-cli==0.8.2 Copy PIP instructions
Command-line interface for the Tamarind Bio platform. Discover tools, submit and monitor protein / nucleic-acid / small-molecule jobs, and download results — from your terminal, a script, CI, or an AI coding agent (Claude Code, Codex, …).
The CLI is a thin client over the same API the Tamarind MCP server uses, so the two stay in lockstep. See docs/architecture.md for how drift is prevented.
uv tool install tamarind-cli # or: pipx install tamarind-cli Or with the bootstrap installer (uses uv, pipx, or Python/pip already on your PATH):
curl -fsSL https://app.tamarind.bio/cli/install.sh | sh To track the repo directly instead of the PyPI release:
uv tool install "git+https://github.com/Tamarind-Bio/tamarind-cli" # or: pipx install "git+https://github.com/Tamarind-Bio/tamarind-cli" Releasing: tag a GitHub Release and the publish.yml workflow builds and uploads to PyPI via Trusted Publishing (configure the trusted publisher for tamarind-cli on PyPI first).
Get an API key from the Tamarind web app (Settings → API), then either:
export TAMARIND_API_KEY="sk_..." # best for agents / CI # or tamarind auth login # stores it in ~/.tamarind/config.json tamarind auth status Service accounts (OAuth client credentials)
A service account that signs in with OAuth has a client ID and a client secret instead of an API key. The CLI and the SDK trade them for a one-hour access token at the API's token endpoint (POST https://api.tamarind.bio/oauth/token) and renew it themselves:
export TAMARIND_CLIENT_ID="..." # the service account's client ID export TAMARIND_CLIENT_SECRET="..." # or tamarind auth login --client-id ... # asks for the secret, stores both from tamarind import Tamarind client = Tamarind(client_id="...", client_secret="...") The token is kept in memory only, never on disk or in a log. It is renewed a minute before it runs out, and once more if a request is refused with 401.
Every client in one Python process with the same ID and secret shares one token. Each CLI command is its own process and asks for its own token. The token endpoint allows 600 tokens an hour per account (and 300 requests in 10 minutes per network), so a loop that runs many commands a minute should use the SDK instead.
The secret is never taken from the command line, where other users and logs can see it: use the environment variable, the profile, or the auth login prompt.
When both an API key and client credentials are set, the one set more specifically wins (a flag over an environment variable, an environment variable over the profile). At the same level the API key wins.
Sign in through the browser
You approve in the browser with your normal Tamarind sign-in (your password, Google, or your company's single sign-on where your organization uses it). Works where your organization's admin has turned CLI sign-in on:
tamarind auth login --web # prints a link and a code; approve them in the browser import tamarind tamarind.login() # the same, for a notebook: prints the link and code, waits Plain tamarind auth login asks for an API key, which is not shown as you type or paste it. --web signs in through the browser instead.
Where an organization requires browser sign-in, its servers refuse a person's API key from the CLI and SDK with a message saying so (exit code 3); auth login with such a key then offers the browser sign-in instead of "key rejected".
Approve only if you started the sign-in yourself. --no-browser never opens a browser (it also stays shut over SSH and when output is piped). With --json, the link and code are one JSON line on stderr. The computer's name is sent as the sign-in's label, so you and your admin can tell sign-ins apart.
The CLI and Tamarind() then use a one-hour token that renews itself. The token and the value that renews it are kept in ~/.tamarind/credentials.json (readable by you only), and one token is reused by every command until a minute before it runs out.
You sign in again when your organization's period ends, or when an admin switches CLI sign-in off or you leave the organization: the next command says "Your Tamarind sign-in has ended". tamarind auth status shows when. tamarind auth logout ends the sign-in at the server too.
A profile has one way to sign in: this replaces a stored key or client credentials, and auth login with a key replaces this. A key or client credentials in the environment or on the command line still win.
# 1. Find a tool tamarind tools --function structure-prediction --modality protein tamarind tools --search boltz # 2. Inspect its parameters and grab a runnable example tamarind schema boltz tamarind schema boltz --example > job.yaml # most tools ship an example; some don't # 3. Validate, then submit tamarind validate boltz --input job.yaml tamarind submit boltz --input job.yaml --name my-run \ --wait --timeout 3600 --download ./out # 4. Monitor / fetch tamarind jobs tamarind status my-run tamarind results my-run --download ./out # A job run by another member of your organization tamarind jobs --organization tamarind status their-run --organization # or --email teammate@example.com tamarind results their-run --organization --download ./out Set individual fields inline instead of a file:
tamarind submit boltz \ --set inputFormat=sequence \ --set sequence=MKTVRQERLKSIVRIL... \ --name quick-fold Python SDK
The package exposes typed Pipelines and Custom Tools resources. Pipeline runs use the same node-run terminology as the web app and public REST API:
from tamarind import Tamarind with Tamarind() as client: run = client.pipelines.get_run("run-id") for node_run in run.node_runs: page = node_run.molecules(limit=100) print(node_run.label, page.items) client.jobs.results(name) returns a signed link to a job's results zip. With v1 on for the key, paths=[...] or glob="*.pdb" gets a zip of just those files.
With v1 on for the key, client.benchmarks defines, runs and reads custom benchmarks (list, get, validate, create, update, estimate, run, stop_run, results, delete, and leaderboards for every board's latest leaderboard in one call). Tamarind's public boards are public:tb1, public:cfa, public:memb and public:poisk:
with Tamarind() as client: rows = list(Tamarind.paginate(client.benchmarks.results, "public:poisk", limit=1000)) csv = client.benchmarks.results("public:poisk", format_="csv") # bytes A long row can continue on the next page (designsContinued: true). The CLI has the same commands: tamarind benchmarks results public:poisk --format csv -o poisk.csv. client.agent_builder (tamarind agent-builder) manages custom agents, skills and your Tamarind agent's settings. validate_agent and validate_skill (agents validate, skills validate) check a save with nothing saved; list_agent_versions and list_skill_versions (agents versions ID, skills versions ID) list the versions you can read.
The Custom Tools resource checks archive-local safety, packages a folder, uploads it directly to object storage, and submits the digest-checked build request. The server remains authoritative for source readiness, Versions, logs, and the evolving config.json contract.
from tamarind import Tamarind from tamarind.errors import CustomToolNotFoundError with Tamarind() as client: try: tool = client.custom_tools.get("my-esmfold") except CustomToolNotFoundError: tool = client.custom_tools.create("my-esmfold", display_name="My ESMFold") result = tool.build("./my-esmfold", idempotency_key="release-2026-08-26") print(result.action) # build, reuse_image, or unchanged version = result.version print(version.version) # numbered version, e.g. v3 if not version.terminal: version = version.monitor(timeout=1800, on_event=print) build() returns a typed result describing what the request did and the durable Version it produced. It is convenience orchestration, not a durable request object. Reuse idempotency_key when retrying an ambiguous build response; the server returns the already admitted Version. If no key was supplied, fetch the tool's versions before retrying. Interrupting monitor() stops local monitoring; it does not cancel the remote build.
Exact Version operations use version.version, such as v3. If a mutation reports 412 Precondition Failed, refetch the affected Tool or Version, confirm the mutation is still desired, and retry using the refreshed resource.
The same lifecycle is available through the unified CLI. A typical release is:
tamarind custom-tools validate ./my-esmfold tamarind custom-tools create my-esmfold --display-name "My ESMFold" tamarind custom-tools build my-esmfold ./my-esmfold \ --idempotency-key release-2026-08-31 --wait --timeout 1800 tamarind custom-tools versions my-esmfold tamarind custom-tools publish my-esmfold v3 Build responses contain a numbered version, such as v3. Pass it to version, logs, cancel, and publish. A local wait timeout does not cancel the remote build; reattach with tamarind custom-tools version NAME VERSION --wait.
Test a completed Custom Tool version
After building, submit a test without publishing the version:
tamarind custom-tools test my-esmfold --version v3 \ --input inputs.json --name esmfold-smoke tamarind status esmfold-smoke tamarind wait esmfold-smoke --timeout 600 Or use the SDK:
For the complete CLI workflow, source layout, build monitoring, publishing, and rollback examples, see the Custom Tools CLI guide.
Every command emits JSON when stdout is not a TTY, or with --json. Result documents are written to stdout. Typed command, transport, and usage errors are written to stderr as {"error":{"type":...,"message":...,"exitCode":...,"detail":...}}; detail is omitted when unavailable. A domain verdict can deliberately combine a nonzero exit with a result document: invalid validate output remains on stdout with exit 5, and a terminal unsuccessful job remains on stdout with exit 9 so callers can inspect its status. Exit codes are stable: 0 ok, 1 generic failure, 2 usage, 3 auth, 4 not-found, 5 validation, 6 rate-limit, 7 timeout (a bounded wait elapsed while the remote job may still run), 8 budget/quota exhaustion, and 9 remote job failure.
For agent workflows, always put a deadline on blocking commands. submit --wait and results --wait accept --timeout; the standalone wait command remains the easiest way to reattach to a durable job name.
Starting in 0.2, results requires --download DIR by default and never prints a presigned URL implicitly. This intentional safety boundary is why the release uses a new pre-1.0 minor version. The explicit --show-url escape hatch returns a credential-bearing, short-lived URL; do not use it in agent, CI, or shared logs.
Not every tool ships a runnable example — schema
tamarind --json jobs | jq '.jobs[] | select(.JobStatus=="Running")' --json, --profile, and the endpoint/auth overrides are global options, so place them before the command name.
Run tamarind
Every request says whether it came from the CLI or the SDK, and which AI agent (Claude Code, Codex, Claude Science, ...) is running it when that can be told from the environment. Tamarind uses this only to count usage by channel and platform.
Profiles (key or client credentials + endpoints) are stored in ~/.tamarind/config.json. Use a profile to point at staging:
tamarind --profile staging --api-base https://staging.tamarind.bio/api/ auth login TAMARIND_PROFILE=staging tamarind tools Links
CLI docs — the hosted quickstart and command reference
MCP server — the hosted option for claude.ai, ChatGPT, and other MCP clients
API key — get your key and review rate limits
Questions or need help? Contact us at info@tamarind.bio.
Licensed under the Apache License 2.0.
Released: Dec 4, 2026
Author: Tamarind Bio
Both files in this release have provenance metadata.
View provenance details
agents alphafold bioinformatics boltz cli protein
Release files for tamarind-cli 0.8.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 2.1 MB
Release files / tamarind_cli-0.8.2.tar.gz
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 Dec 4, 2026.
Release files / tamarind_cli-0.8.2-py3-none-any.whl
Security for tamarind-cli 0.8.2
Both files in this release have been uploaded with provenance metadata.
With provenance tamarind_cli-0.8.2.tar.gz Dec 4, 2026
With provenance tamarind_cli-0.8.2-py3-none-any.whl Dec 4, 2026
Attestation for tamarind_cli-0.8.2.tar.gz
Attestation for tamarind_cli-0.8.2-py3-none-any.whl
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.
Release history Release notifications | RSS feed
Dec 4, 2026 2 release files Full provenance
Dec 3, 2026 2 release files Full provenance
Dec 2, 2026 2 release files Full provenance
Nov 25, 2026 2 release files Full provenance
Nov 15, 2026 2 release files Full provenance
Nov 13, 2026 2 release files Full provenance
Oct 13, 2026 2 release files Full provenance
Oct 12, 2026 2 release files Full provenance
Sep 11, 2026 2 release files Full provenance
Sep 1, 2026 2 release files Full provenance
Aug 31, 2026 2 release files Full provenance
Aug 27, 2026 2 release files Full provenance
Aug 26, 2026 2 release files Full provenance
Aug 25, 2026 2 release files Full provenance
Jul 13, 2026 2 release files Full provenance
Jul 10, 2026 2 release files Full provenance
Jul 1, 2026 2 release files Full provenance
Jun 30, 2026 2 release files Full provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation
Deployed from 1274d9b











