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.0a3.tar.gz (34.3 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.0a3-py3-none-any.whl (25.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: galagos_cli-0.1.0a3.tar.gz
  • Upload date:
  • Size: 34.3 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.0a3.tar.gz
Algorithm Hash digest
SHA256 ab5790545cbb1be4c15ee7fbdb4276925e0bfc60afc21da5543b4949327797be
MD5 b1d654d4b4a8ac0860563134b894d487
BLAKE2b-256 af1b59b8d88a9ce538e94a65280ad73e3c5cdd8554c8f515a160b4f2b403dd3f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: galagos_cli-0.1.0a3-py3-none-any.whl
  • Upload date:
  • Size: 25.8 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.0a3-py3-none-any.whl
Algorithm Hash digest
SHA256 ffa0382ba6a2867c9e637af5dc3b36ec2ca1d93d038165ee321fedf431fa5de0
MD5 e16cd279d6415b4e9d973970f2d528ec
BLAKE2b-256 b071c30fe22f0a232ebb3b9e5434071927ba3f7244a36ec4d7104486d33e2c9f

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