stackai
An interactive AI agent in your terminal — like Claude Code, for StackAI.
Installation
pip install stackai
This installs the stack command.
The interactive agent
Just run stack (or stack chat) to start an interactive session:
stack
You get a streaming chat loop with tool use — the agent can read files, list directories, and run shell commands (with your approval) to help answer your questions. Extended thinking is streamed inline.
› what does pyproject.toml configure?
stack ⚙ read_file pyproject.toml
… reads the file, then explains it
Slash commands
| Command | Description |
|---|---|
/help |
show available commands |
/clear |
reset the conversation |
/tools |
list the tools the agent can call |
/backend <name> |
switch backend (anthropic | stackai) |
/exit, /quit |
leave |
Backends
The agent is backend-pluggable. Default is Anthropic (Claude); you can also point it at a deployed StackAI workflow.
Anthropic (default) — set a key and go:
export ANTHROPIC_API_KEY=sk-ant-...
stack # or: stack chat -b anthropic -m claude-opus-4-8
StackAI — call one of your deployed workflows:
stack config set backend stackai
stack config set stackai_url https://api.stack-ai.com/inference/v0/run/<org>/<flow>
stack config set stackai_api_key <key>
stack
Config is stored at ~/.config/stackai/config.json. Relevant keys:
backend, model, anthropic_api_key, stackai_url, stackai_api_key,
stackai_input_field (default in-0), stackai_output_field (default outputs).
Other commands
stack --version
stack hello [name]
stack config set|get|list|path
Development
This project uses uv.
uv sync # install deps into a local venv
uv run stack # run the agent from source
uv run pytest # run the test suite
Building & publishing
uv build # produces wheel + sdist in dist/
uv publish # upload to PyPI
License
MIT
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stackai-0.2.3.tar.gz.
File metadata
- Download URL: stackai-0.2.3.tar.gz
- Upload date:
- Size: 13.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01a0de81e52f0cf42aa5b157c274b3e1babfcbf2868c467b016b408165509807
|
|
| MD5 |
e007e45bf3425eefca1e022432a83556
|
|
| BLAKE2b-256 |
664ed9ea1e29ff1e213be65ecddfbe64ccdd4c05415ec78cbb899d066025b7f4
|
File details
Details for the file stackai-0.2.3-py3-none-any.whl.
File metadata
- Download URL: stackai-0.2.3-py3-none-any.whl
- Upload date:
- Size: 15.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98627ae1a4d342b729b52528b0f75b23a996c7a7bcb3da75a970b059c855e215
|
|
| MD5 |
a48f62c23cde2a93b4c9493326f96098
|
|
| BLAKE2b-256 |
1c3e78be80fc38d619a3f17da2545dfab86bae1ad0ba7d80fa2e84f1dd424d60
|