Official command line interface for SpecSmith - AI-powered code generation and documentation
Project description
Specsmith CLI
Forge clear specifications from product ideas. AI-powered agent for developers and builders.
The Specsmith CLI is a thin client for AI-powered specification generation using the Specsmith platform. Run specsmith, describe what you need, and get structured, implementation-ready technical specs.
🚀 What is Specsmith?
Specsmith helps engineers move from rough ideas to actionable specifications. It asks clarifying questions, identifies ambiguities, and produces detailed specs designed to feed directly into AI coding agents or human implementation.
✨ Key Capabilities
- 🧠 Structured Specs: From natural language to clear acceptance criteria & Definition of Done
- 💬 Clarifying Conversations: Interactive chat that refines requirements before finalizing
- 📁 File Handling: Create and update spec files right from the CLI
- ⚡ Streaming Responses: Real-time feedback as the AI reasons through your request
- 🎯 Simple Entry Point: Just run
specsmith— no flags required
🎯 Perfect For
- Product managers defining features
- Engineers planning implementations
- Architects documenting systems
- DevOps & infra teams writing technical runbooks
📦 Installation
pip install specsmith-cli
specsmith --version
⚡ Quickstart
1. Get Your API Keys
Learn more at specsmith.ai or go straight to signup → Settings → API Keys → generate a new key pair.
2. Configure Authentication
Recommended:
specsmith setup
Advanced alternatives:
-
Env vars
export SPECSMITH_ACCESS_KEY_ID="your-access-key-id" export SPECSMITH_ACCESS_KEY_TOKEN="your-access-key-token"
-
Config file
mkdir -p ~/.specsmith cat > ~/.specsmith/credentials << EOF access_key_id=your-access-key-id access_key_token=your-access-key-token EOF
3. Test
specsmith test
4. Start Workinggit add 0p
specsmith
That’s it — describe what you need, and specsmith will generate detailed specifications.
🎨 Usage Examples
Interactive session:
specsmith
Example:
You: I need a real-time chat app
specsmith: Let’s cover scale, features, tech stack, and platforms.
...
File management:
# Inside a chat session
# ✓ Create new file: database-schema.sql? (y/n): y
Configuration:
specsmith config
🛠️ Advanced Features
-
Custom API Endpoint
export SPECSMITH_API_URL="https://your.company/api"
-
Debug Mode
specsmith --debug -
Available Commands
specsmith chat # start chat (default) specsmith setup # configure credentials specsmith test # test connection specsmith config # show current config specsmith version # version info specsmith --help # all options
🔧 Configuration Options
| Variable | Description | Default |
|---|---|---|
SPECSMITH_ACCESS_KEY_ID |
API key ID | required |
SPECSMITH_ACCESS_KEY_TOKEN |
API key token | required |
SPECSMITH_API_URL |
API endpoint | https://api.specsmith.ai |
SPECSMITH_DEBUG |
Enable debug logging | false |
Config sources (priority order):
~/.specsmith/credentials- Env vars
- CLI args
🚀 Real-World Use Cases
specsmith
# "Plan a notification system for a mobile app with push + email"
specsmith
# "Design a REST API for a multi-tenant SaaS with RBAC"
specsmith
# "Specify a CI/CD pipeline for microservices on Kubernetes"
specsmith
# "Create a database schema for a social app with posts, comments, likes"
🔍 Troubleshooting
Auth Errors
specsmith test
specsmith setup
Connection Issues
curl -I https://api.specsmith.ai/health
specsmith test --debug
File Permissions
chmod 755 .
More help:
- Docs: README
- Issues: GitHub
- Website: specsmith.ai
- Signup: app.specsmith.ai/signup
- Support: support@specsmith.ai
📄 License
MIT License — see LICENSE
🌟 Why specsmith?
Good code starts with good specs. specsmith makes your requirements:
- Complete: No missing edge cases
- Actionable: Ready for humans or AI agents
- Consistent: Following best practices & standards
- Contextual: Informed by your repo & architecture
Transform your workflow. Start with better specs.
Get Started • Signup • Docs
Made with ❤️ by specsmith
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
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 specsmith_cli-0.1.5.tar.gz.
File metadata
- Download URL: specsmith_cli-0.1.5.tar.gz
- Upload date:
- Size: 14.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce62570839f91d034288218643817d9a64fbb905278c318c0cf9dfad9ad0b7a2
|
|
| MD5 |
f91ee90a6ccb54fb8625c16a9125e9e0
|
|
| BLAKE2b-256 |
03a6484ac6b64c6373ef918579bddbdd7cbdfe6a638720a3ec648777ead5570f
|
Provenance
The following attestation bundles were made for specsmith_cli-0.1.5.tar.gz:
Publisher:
release.yml on specsmith-ai/specsmith-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
specsmith_cli-0.1.5.tar.gz -
Subject digest:
ce62570839f91d034288218643817d9a64fbb905278c318c0cf9dfad9ad0b7a2 - Sigstore transparency entry: 459342553
- Sigstore integration time:
-
Permalink:
specsmith-ai/specsmith-cli@b284d97c738b42a2f516ac0ea73f0e16ccd0dd70 -
Branch / Tag:
refs/tags/v0.1.5 - Owner: https://github.com/specsmith-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b284d97c738b42a2f516ac0ea73f0e16ccd0dd70 -
Trigger Event:
push
-
Statement type:
File details
Details for the file specsmith_cli-0.1.5-py3-none-any.whl.
File metadata
- Download URL: specsmith_cli-0.1.5-py3-none-any.whl
- Upload date:
- Size: 15.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
334508df011b81ae24a1d61d2734f4e885c5f87691c9e21a9a85493155dce9e8
|
|
| MD5 |
dc0636b9e346ef2b0fcc5f1ddc3cd256
|
|
| BLAKE2b-256 |
018a37a89e099df5a0218b7ccec6c6ed5772cc9ee25ac5a509b624cbdfdfcc33
|
Provenance
The following attestation bundles were made for specsmith_cli-0.1.5-py3-none-any.whl:
Publisher:
release.yml on specsmith-ai/specsmith-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
specsmith_cli-0.1.5-py3-none-any.whl -
Subject digest:
334508df011b81ae24a1d61d2734f4e885c5f87691c9e21a9a85493155dce9e8 - Sigstore transparency entry: 459342592
- Sigstore integration time:
-
Permalink:
specsmith-ai/specsmith-cli@b284d97c738b42a2f516ac0ea73f0e16ccd0dd70 -
Branch / Tag:
refs/tags/v0.1.5 - Owner: https://github.com/specsmith-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b284d97c738b42a2f516ac0ea73f0e16ccd0dd70 -
Trigger Event:
push
-
Statement type: