Skip to main content

stackai-cli

AI-powered Docker assistant. No configuration needed.

stackai analyzes your project, generates an optimized Dockerfile and docker-compose, and debugs your containers using a local AI model — all in a single command.

PyPI version Python License: MIT

Installation

pip install stackai-cli

stackai debug requires Ollama running locally with ollama pull llama3.

Commands

stackai init — Generate Docker files from your project

cd my-project
stackai init
🔍 Analyzing project...
✅ Stack detected: python / fastapi + postgres + redis
⚙️  Generating Docker files...
  ✅ Dockerfile created
  ✅ .dockerignore created
  ✅ docker-compose.yaml created

🚀 Ready! Run: docker compose up -d

stackai scan — Inspect detected stack without generating files

stackai scan
📦 Stack detected:
  Language    : python
  Framework   : fastapi
  Port        : 8000
  Services    : postgres, redis
  Python ver. : 3.11

stackai debug — Analyze a failing container with AI

stackai debug my-container
📋 Latest logs:
  ─────────────────────────────────────────
  Error: could not connect to postgres...
  ─────────────────────────────────────────

🤖 Running AI analysis...

💡 Analysis:
1. PROBLEM : The app cannot connect to PostgreSQL
2. CAUSE   : The postgres container is not ready when the app starts
3. FIX     : Add `depends_on: [postgres]` in your docker-compose.yaml

Supported Stacks

Language Detected Frameworks
Python FastAPI, Flask, Django, generic
Node.js Express, Next.js, Nuxt.js, React
Java Spring Boot (Maven / Gradle)
Go generic

Auto-detected Services

postgres · redis · mongodb · mysql · elasticsearch

Requirements

  • Python 3.10+
  • Docker installed and running
  • Ollama + ollama pull llama3 (only for stackai debug)

Contributing

Pull requests are welcome. For major changes, please open an issue first.

License

MIT © El Mehdi Boutahar

Metadata

Release files for stackai-cli 0.2.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 stackai-cli 0.2.0
File Size Uploaded Provenance Actions
stackai_cli-0.2.0.tar.gz 12.6 kB With provenance Details for stackai_cli-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for stackai-cli 0.2.0
File Interpreter ABI Platform Actions
stackai_cli-0.2.0-py3-none-any.whl Python 3 none any Details for stackai_cli-0.2.0-py3-none-any.whl

Total release size: 25.3 kB

Release files / stackai_cli-0.2.0.tar.gz

Download URL stackai_cli-0.2.0.tar.gz
Size 12.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d886e62202a484fbd4d43c88fdaccd1d4ba7802630e70ae233df20b379a75dc5
BLAKE2b-256 checksum
How to use checksums
c6865301e5e2f0b0f43cbf8aa20a1d2d0ba2cfd97d6ebda8daf3198bf56f469a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 2, 2026.

Transparency log

Release files / stackai_cli-0.2.0-py3-none-any.whl

Download URL stackai_cli-0.2.0-py3-none-any.whl
Size 12.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
20b429a108928ca4c9c8883c1bba01268d552a99defde8a2295bcc55576b19ba
BLAKE2b-256 checksum
How to use checksums
dadb6706f2c7d428371fc00d8b1be6bcf71859079e56757bbb445ead010b7eac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 2, 2026.

Transparency log

Security for stackai-cli 0.2.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for stackai_cli-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 2, 2026.

Transparency log

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.

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