Skip to main content

create-agent-template

Scaffold production-ready Agentic AI projects in Python with one command.

create-agent-template generates opinionated, extensible project templates built around LangGraph patterns, modern provider support, API-first structure, and practical defaults for real-world teams.

Quick Demo

create-agent-template demo

Why create-agent-template

  • Production-oriented templates (not toy examples)
  • Consistent project structure across agent architectures
  • Interactive setup flow for provider and feature selection
  • Optional FastAPI backend, streaming, tests, Docker, and observability hooks
  • Ready-to-customize prompts, graph logic, tools, and config files

Supported Templates

Template Best For Architecture
react_agent Tool-using assistants with iterative reasoning ReAct loop with LangGraph + tool execution
rag_agent Grounded answers from your documents Retrieval + grading + generation pipeline with optional guards/cache
multi_agent Coordinated specialist workflows Supervisor graph orchestrating worker agents
conversational Alias for conversational assistants Delegates to react_agent generation
hitl Human-in-the-loop orchestration baseline Delegates to multi_agent generation

Supported LLM Providers

  • Groq
  • Gemini
  • Azure OpenAI
  • Ollama

Provider credentials are configured via generated .env files.

Installation

pip install create-agent-template

For local development:

pip install -e .[dev]

Usage

create-agent-template my-agent-project

If your shell cannot find create-agent-template, use:

python -m create_agent_template my-agent-project

Optional output directory:

create-agent-template my-agent-project --output ./workspace

Alias command (equivalent):

create_agent_template my-agent-project

The CLI prompts you to configure:

  • Template type
  • LLM provider
  • API backend and streaming support
  • Pre-installed tools
  • RAG options (semantic cache and security guards)
  • Optional features (Docker, tests, observability, agent description)

What Gets Generated

Each project includes:

  • A runnable main.py entrypoint
  • Config-first setup (config.yaml, .env.example)
  • Template-specific modules (agent/, rag/, agents/, tools/, etc.)
  • Optional api/ routes and schemas
  • Optional tests/
  • Optional Docker artifacts

The generator also initializes git and creates a data/ directory scaffold.

Feature Flags (Template Rendering)

The generator conditionally includes files based on selected options:

  • include_api: includes or skips api/
  • include_tests: includes or skips tests/
  • include_docker: includes or skips Docker artifacts
  • include_guards (RAG): includes or skips security/
  • include_semantic_cache (RAG): includes or skips semantic cache template

Example Developer Workflow

create-agent-template customer-support-agent
cd customer-support-agent
python -m venv .venv
source .venv/bin/activate  # Windows: .venv\Scripts\activate
pip install -r requirements.txt
cp .env.example .env
# Add provider credentials
python main.py

Project Quality Notes

  • Templates are generated from Jinja files under create_agent_template/templates/
  • Shared and template-specific rendering are centralized in create_agent_template/generator.py
  • Generation summary is displayed in rich tables for clarity
  • Templates are structured for straightforward extension, not lock-in

Development

pip install -e .[dev]
python -m build
python -m twine check dist/*

Troubleshooting (Windows)

If you see:

create-agent-template : The term 'create-agent-template' is not recognized ...

then the package is usually installed, but your Python Scripts directory is not on PATH.

Check install location:

py -m pip show create-agent-template
py -m site --user-base

Typical scripts path to add to PATH:

%APPDATA%\Python\Python3x\Scripts

After updating PATH, restart PowerShell and run:

create-agent-template --help

Fallback that always works when package is installed:

py -m create_agent_template --help

Publishing to PyPI

If a version already exists on PyPI, bump project.version in pyproject.toml before upload.

python -m build
twine upload dist/*

Optional:

twine upload --skip-existing dist/*

Contributing

  1. Fork the repository.
  2. Create a branch for your change.
  3. Validate generated templates locally.
  4. Submit a pull request with a clear summary and sample output.

License

MIT

Metadata

Release files for create-agent-template 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for create-agent-template 0.1.3
File Size Uploaded Provenance Actions
create_agent_template-0.1.3.tar.gz 44.9 kB Without provenance Details for create_agent_template-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for create-agent-template 0.1.3
File Interpreter ABI Platform Actions
create_agent_template-0.1.3-py3-none-any.whl Python 3 none any Details for create_agent_template-0.1.3-py3-none-any.whl

Total release size: 118.3 kB

Release files / create_agent_template-0.1.3.tar.gz

Download URL create_agent_template-0.1.3.tar.gz
Size 44.9 kB
Tags Source
SHA-256 checksum
How to use checksums
acc56ec495fa703e7ea60e03c4117871a119241c21d44dfaf22f3a2aa6dc58c9
BLAKE2b-256 checksum
How to use checksums
6fd6be212bc6d51e5eee8b02adad0d6b9339acc4e8e717d7dcca3292e2ee99e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / create_agent_template-0.1.3-py3-none-any.whl

Download URL create_agent_template-0.1.3-py3-none-any.whl
Size 73.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
752aee358d671fefe5ed5ae1582f6753f180a7f8b0e430f40f741f9800c7041b
BLAKE2b-256 checksum
How to use checksums
d7ed1c74948634fca18cc0543bd7c69af526f88b17b5fd6a781b3f41ddda6ac6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for create-agent-template 0.1.3

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files No provenance

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