Aquin LogoAquinLabs
Login

Agent & raw CLI

Cross-cutting commands: installation, authentication, engine connection, model loading, the aquin chat agent loop, one-shot raw CLI invocation, session memory, and legacy packaging. These apply regardless of LLM vs embedding mode unless noted.

23 commands

pip install aquin

Install the CLI from PyPI. Requires Python 3.10+ and a CUDA-capable GPU for model tools.

example

aquin login

Save your Aquin API key (aq-…) from aquin.app to ~/.aquin/config.json. Required before any other command.

example

aquin api-key

Print the saved API key. Useful for curl: Authorization: Bearer $(aquin api-key).

example

aquin whoami

Show the account associated with the saved API key.

example

aquin switch

Replace the saved API key with a new one.

example

aquin version

Print installed CLI version.

example

aquin update

Upgrade aquin to the latest PyPI release.

example

aquin help

Print command list filtered by current mode (LLM vs embedding). Shows only tools available for the loaded model.

example

aquin connect

Register this machine as an engine on api.aquin.app, create a session, and write session_id to ~/.aquin/engine.json. Required for web sync. Every GPU command after connect pushes SyncEvents to the session.

FlagDescription
--device*Human-readable machine label.
--api-keyOverride saved key.
example

Open https://aquin.app/app/session/<session_id> to watch live.

aquin disconnect

Mark engine offline. Stops pushing sync events.

example

aquin engine status

Show connection state, session_id, engine_id, active model, and tool mode (LLM / embedding).

example

aquin load

Load a model onto local GPU and set tool mode automatically. LLMs activate inspection/eval/simulation tools. Embedding models activate embed-* tools. No reconnect needed when switching model types.

FlagDescription
--model*Model ID: gpt2-small, pythia-70m, llama-3.2-1b, gte-small, all-minilm-l6, bge-small-en, etc.
example

aquin list models

List available model IDs from the registry.

example

aquin list saes

List public SAE checkpoints (model-layer pairs).

example

aquin info sae

Show metadata for one SAE: layer, dictionary size, training corpus.

FlagDescription
<model-l{n}>*SAE slug, e.g. gpt2-small-l8.
example

aquin pull sae

Download SAE weights to local cache. Required before feature-level inspection tools.

FlagDescription
<model-l{n}>*SAE slug.
example

aquin chat

Multi-turn terminal agent. Cloud orchestrator picks tools from the registry; GPU executes locally. Every message and tool result syncs to the web orchestrator panel. Preferred workflow for exploratory work: describe what you want in natural language.

FlagDescription
--sessionAttach to existing session ID.
example

Example prompts: Run full inspection on "…" · Simulate training on topic flowers · Run embed layer drift on "…"

aquin <tool-verb>

One-shot raw CLI: any tool verb from the registry (inspect, steer, simulate, embed-layer-drift, etc.) without agent orchestration. Same GPU path and web sync as chat. Use --output json for scripting.

FlagDescription
--sessionSession to sync to.
--output jsonRaw JSON stdout.
example

Mode-filtered: aquin help shows verbs available for your loaded model.

aquin mem-write

agent tool: write_session_memory

Write a key-value pair to session memory. Visible to aquin chat agent and web analyst panel.

FlagDescription
--key*Memory key.
--value*Memory value (string).
example

aquin mem-read

agent tool: read_session_memory

Read a value from session memory by key.

FlagDescription
--key*Memory key.
example

aquin run-code

agent tool: write_and_run_code

Write and execute Python on the local engine. Coming soon.

FlagDescription
--code*Python source.
example

Not yet implemented.

aquin save-artifact

agent tool: save_code_artifact

Save a named code artifact to the session. Coming soon.

FlagDescription
--name*Artifact name.
--descriptionDescription.
--code*Source code.
example

Not yet implemented.

aquin package / aquin push

Legacy training upload flow: package a recorded training run and push to cloud for post-hoc inspection. Separate from the sync CLI workflow.

example

Legacy. New workflows use aquin connect + aquin chat + simulation tools.

Configuration

Local paths and environment variables the CLI reads between sessions.

~/.aquin/config.jsonSaved API key.
~/.aquin/engine.jsonsession_id, engine_id, base_url after connect.
~/.aquin/active_model.txtLast loaded model; determines LLM vs embedding tool mode.
~/.aquin/runs/<id>/Saved simulation runs on local disk.
AQUIN_API_KEYEnvironment override for API key.
AQUIN_BASE_URLAPI base URL override (default https://api.aquin.app).

Shared flags

Available on every GPU tool command across inspection, simulation, and evals.

--session <id>Attach to a specific session (default: active session from ~/.aquin/engine.json).
--output jsonPrint raw JSON instead of formatted terminal output.
--model <id>Override the active model for this command only.