Skip to main content

braven-identity

The one credential store the Braven CLI and the SDK read (and the GPUIX watcher will read), so a person signs in once per machine and every surface knows who they are.

This package is the reference implementation (Python, src/braven_identity/). The convention below is the contract: any other implementation — the GPUIX watcher's TypeScript side included — mirrors it rather than inventing a second store.

Two files, one owner

Config — non-secret, one JSON file per machine. Never holds a secret, so it can be read, diffed and synced.

OS Path
macOS ~/Library/Application Support/braven/config.json
Linux ${XDG_CONFIG_HOME:-~/.config}/braven/config.json
Windows %APPDATA%\braven\config.json
{
  "version": 1,
  "current": "https://api.bravenlab.com|me@example.com", // key into `accounts`
  "accounts": [
    {
      "origin": "https://api.bravenlab.com",
      "email": "me@example.com",
      "kind": "session", // "session" | "apiKey"
      "label": "laptop" // optional: an API key's name
    }
  ],
  "defaults": { "company": "Gelion", "project": "Hydrogel Plasma Activation" },
  "watcher": { "concurrency": 3, "ignore": [".git", "node_modules"] }
}

Secret — credentials.json beside the config file. One JSON object keyed by {origin}|{email} (the same string as current), written atomically with mode 0600. It is opencode's model: no OS keychain, so nothing prompts for a password when a new binary reads it, and no native addon ships to every surface. A file that cannot be read or written is a SecretsError, never a silent fallback to the config file.

Credential kinds

  • session — a better-auth session token, as returned by POST /api/auth/sign-in/email. Sent as Authorization: Bearer <token>.
  • apiKey — a long-lived bvn_api_… key (Settings → API keys), for headless machines and CI.

Both resolve to a principal the API already accepts.

Multi-account

Accounts are keyed by (origin, email); current points at one. Two companies on one machine are two accounts, switched without logging out.

Precedence: env var > flag > store

For CI and headless machines nothing has to be written: BRAVEN_SESSION_TOKEN, BRAVEN_API_KEY (with BRAVEN_API_URL) win over the store, and no file is touched.

Usage

uv run pytest        # tests, on tmp files only
uv run ty check      # types
uv run ruff check .  # lint (repo-root ruff.toml)

Metadata

Release files for braven-identity 0.1.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 braven-identity 0.1.0
File Size Uploaded Provenance Actions
braven_identity-0.1.0.tar.gz 22.1 kB Without provenance Details for braven_identity-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for braven-identity 0.1.0
File Interpreter ABI Platform Actions
braven_identity-0.1.0-py3-none-any.whl Python 3 none any Details for braven_identity-0.1.0-py3-none-any.whl

Total release size: 27.9 kB

Release files / braven_identity-0.1.0.tar.gz

Download URL braven_identity-0.1.0.tar.gz
Size 22.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a5d4244e31c3cd994542a14242af4a7e7751cac4b199cce264b4a20039538344
BLAKE2b-256 checksum
How to use checksums
e5e7cfe264088bcec7e773d50af0df9b51c0d60088af97fea014dcced648172f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / braven_identity-0.1.0-py3-none-any.whl

Download URL braven_identity-0.1.0-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aa9486bff422939abb7c2d62b9afb9bc4d8be2216658e657659f4ca6f65d9638
BLAKE2b-256 checksum
How to use checksums
864df48ae93ccee7525688293de4c033de1242b0a371ff7b71bbf45de50a9a11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for braven-identity 0.1.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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

This release

0.1.0 This release

2 release files No provenance

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