Skip to main content

Command-line client for the Galagos AI bioinformatics platform.

Project description

galagos-cli

Command-line client for the Galagos AI bioinformatics platform. Drives sandboxes, chats, and files programmatically against the Django REST API.

Install

pipx install galagos-cli      # recommended
# or
pip install galagos-cli

For local development:

python3.11 -m venv .venv
.venv/bin/pip install -e .

Quick start

# 1. Point at the API and paste a token (mint one from the web profile page)
galagos auth login --base-url https://app.galagos.ai/api

# 2. Pick a sandbox and a chat
galagos projects ls
galagos projects use <project-id>
galagos chats new --title "BLAST run from CLI"

# 3. Talk to the agent
galagos chat "Run BLAST on workspace/queries.fasta against nr"

# 4. Read results
galagos files cat results/hits.tsv
galagos files get results/hits.tsv -o ./hits.tsv

Commands

Command Purpose
galagos auth login | logout | whoami Manage API token and base URL
galagos projects ls | use <id> List projects, set the default
galagos chats ls | new | use <id> Manage threads inside a project
galagos chat "<msg>" [--resume] [--tools] Send a message and stream the reply
galagos chat cancel Cancel the current turn
galagos files ls | cat <p> | get <p> -o F | put <local> Browse and transfer files

--project / --thread override the saved defaults on any command.

Configuration

Stored at ~/Library/Application Support/galagos/config.toml on macOS (or the equivalent XDG path on Linux). The token is written with 0600 permissions.

Environment overrides:

  • GALAGOS_API_URL — base URL (e.g. http://localhost:8000/api)
  • GALAGOS_TOKEN — bypass the saved token

Streaming and reconnection

galagos chat consumes the same SSE stream the web UI does. If the connection drops, the agent keeps running server-side; reconnect with:

galagos chat --resume

Auth note

Phase 1 reuses the existing per-user launcher token (DRF authtoken.Token). One token per account, no expiration. A named/scoped API-key system is planned for Phase 2.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

galagos_cli-0.1.0a2.tar.gz (30.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

galagos_cli-0.1.0a2-py3-none-any.whl (23.2 kB view details)

Uploaded Python 3

File details

Details for the file galagos_cli-0.1.0a2.tar.gz.

File metadata

  • Download URL: galagos_cli-0.1.0a2.tar.gz
  • Upload date:
  • Size: 30.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.4

File hashes

Hashes for galagos_cli-0.1.0a2.tar.gz
Algorithm Hash digest
SHA256 284b15961151733b908a432b72553f27a947b8e78958dc4c9bcac298e8838ca9
MD5 8fbed0585407a58fedc5f73d07480914
BLAKE2b-256 ae236c4b0179e8487aaded8a00785538a3eaba7355b07d8a74c7c84047918af8

See more details on using hashes here.

File details

Details for the file galagos_cli-0.1.0a2-py3-none-any.whl.

File metadata

  • Download URL: galagos_cli-0.1.0a2-py3-none-any.whl
  • Upload date:
  • Size: 23.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.4

File hashes

Hashes for galagos_cli-0.1.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 07f060e4271de0cf48935c221ff2901b1bc27205c11f458d4de4ca3d554fcc95
MD5 0dd9deaf068bdb64adbbe274850d6ae3
BLAKE2b-256 cbd4c382e69f443da7a8c00b17910a70f5c6866c054a24ef1de545f83504125d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page