Skip to main content

cytario-cli

CLI for working with Cytario storage connections as the signed-in user — designed for AI agents and analysts who need to work with connection data using the workstation's standard AWS tooling.

What it does

  • cytario auth login --host <url> — browser sign-in (OAuth 2.0 Authorization Code + PKCE against the deployment's identity service; a loopback redirect receives the result). The refresh grant is stored user-private (~/.config/cytario/cli, 0600).
  • cytario connections list [--json] — the connections visible to you, with the storage role and access level your grant resolves to.
  • cytario connections setup [--all | <name>] — writes one AWS CLI profile per connection into ~/.aws/config ([profile cytario-<name>]) with web_identity_token_file, so aws / boto3 / pandas perform AssumeRoleWithWebIdentity themselves — with exactly your grant's authorization, never wider.
  • cytario auth status [--json] — the signed-in host, user (Keycloak sub, email, name), and token state; --json emits it machine-readable (agents need the sub to address per-user files such as settings.<sub>.json view presets).
  • cytario auth token / cytario auth refresh — a fresh ID token on stdout, and a rewrite of all managed token files (tokens live ~1 hour).

Agents: see skills/cytario-cli.md for the tool-neutral agent workflow shipped with this repo — what Cytario is, how its data (annotations, view settings, results, job configs) is laid out in your buckets, and the CLI workflow on top.

Installing the skill

The skill file is plain Markdown with a name/description front-matter envelope and is not part of the PyPI package. To use it with an agent that picks up skills from a directory (Claude Code, Cline, any tool that scans a skills folder), fetch it from the repo and point your tool at it, e.g.:

mkdir -p ~/.claude/skills   # or your tool's skills directory
curl -fsSL -o ~/.claude/skills/cytario-cli.md \
  https://raw.githubusercontent.com/cytario/cytario-cli/main/skills/cytario-cli.md

Replace main with a release tag to pin a version. For tools without a skills mechanism, paste the file's contents into your agent's system prompt or project instructions — the file is self-contained.

Install

uv tool install cytario-cli   # or: pip install cytario-cli

Python ≥ 3.10. The CLI is a public OIDC client — no secrets are shipped or stored beyond your own refresh grant.

Usage

cytario auth login --host https://app.cytario.com
cytario connections list
cytario connections setup --all
aws s3 ls --profile cytario-mybucket

Host resolution order: --host, then CYTARIO_HOST, then the last signed-in host. The host is the cytario web app (e.g. https://app.cytario.com) — not the identity host (https://auth.cytario.com); the CLI derives the identity endpoints from it automatically.

Security model

  • Your authorization is exactly your Cytario grant on each connection (read-only / annotate / read-write / admin); bucket sharing stays confined to the web app.
  • No long-lived AWS keys are written; the AWS CLI federates per operation from the token file, and the CLI refreshes tokens before expiry.
  • Revocation: revoking the CLI session in the identity service (or removing your group membership) ends the CLI's access within one token lifetime.

Development

uv sync
uv run ruff format --check && uv run ruff check
uv run pytest

Releases are cut by python-semantic-release on Conventional Commits and published to PyPI via trusted publishing.

License

MIT — see LICENSE.

Metadata

Release files for cytario-cli 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cytario-cli 1.2.0
File Size Uploaded
cytario_cli-1.2.0.tar.gz 86.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cytario-cli 1.2.0
File Interpreter ABI Platform
cytario_cli-1.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 102.6 kB

Release files / cytario_cli-1.2.0.tar.gz

Download URL cytario_cli-1.2.0.tar.gz
Size 86.6 kB
Tags Source
SHA-256 checksum
How to use checksums
4f473c14e2097c072f403ebf703f0a7c4bab834b191a462e0a4a93cec0dfe16c
BLAKE2b-256 checksum
How to use checksums
82b363cd832408039cf6de20a757e4e9275b29682114127976dd287bf661cc94
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 Sep 30, 2026.

Transparency log

Release files / cytario_cli-1.2.0-py3-none-any.whl

Download URL cytario_cli-1.2.0-py3-none-any.whl
Size 16.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a15ac0639e921d7e6f21c45c12ddccbee9b7c54d0e723908da227ab396d10ffa
BLAKE2b-256 checksum
How to use checksums
9ab4589222ac5cc2eb4e6a7128a5f7b95215d9cc4a2c0ed785af8387107d3316
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 Sep 30, 2026.

Transparency log

Release history Release notifications | RSS feed

1.6.0

2 release files

1.5.1

2 release files

1.5.0

2 release files

1.4.3

2 release files

1.4.2

2 release files

1.4.1

2 release files

1.4.0

2 release files

1.3.1

2 release files

1.3.0

2 release files

This release

1.2.0 This release

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

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