Skip to main content

create-agent

A CLI tool to quickly scaffold LLM agent API projects with an OpenAI-compatible interface.

Features

  • Create a new agent project with a single command
  • Includes ready-to-use API endpoints compatible with OpenAI's chat completion API
  • Built-in RAG (Retrieval Augmented Generation) capabilities using LangGraph
  • Support for custom tool definitions
  • Complete FastAPI application structure

Installation

pip install create-agent

Usage

Create a new agent project:

create-agent my-agent

This will create a new directory called my-agent with all the necessary files to run an agent API.

Options

  • --template: Specify a template to use (default: "default")
  • --output-dir: Specify the output directory (default: current directory)
create-agent my-agent --output-dir projects

Project Structure

The generated project follows a well-organized structure:

my-agent/
├── app/
│   ├── api/            # API definitions and models
│   ├── core/           # Core functionality
│   ├── rag/            # RAG implementation with LangGraph
│   ├── services/       # Business logic services
│   ├── utils/          # Utility functions
│   ├── config.py       # Application configuration
│   └── main.py         # FastAPI application
├── .env.example        # Environment variables template
├── .gitignore          # Git ignore file
├── README.md           # Project documentation
└── requirements.txt    # Dependencies

Next Steps After Creating a Project

  1. Navigate to your new project directory:

    cd my-agent
    
  2. Create and activate a virtual environment:

    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
    
  3. Install dependencies:

    pip install -r requirements.txt
    
  4. Set up your environment variables:

    cp .env.example .env
    
  5. Edit the .env file with your API keys and configuration

  6. Run the application:

    uvicorn app.main:app --reload
    

License

MIT

Metadata

Release files for create-agent 0.0.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 0.0.3
File Size Uploaded
create_agent-0.0.3.tar.gz 17.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for create-agent 0.0.3
File Interpreter ABI Platform
create_agent-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 39.0 kB

Release files / create_agent-0.0.3.tar.gz

Download URL create_agent-0.0.3.tar.gz
Size 17.2 kB
Tags Source
SHA-256 checksum
How to use checksums
5efd85ae28af3ffb835063965dfa7459d2b7eabd54f1c4da601b88bb8aa30fa1
BLAKE2b-256 checksum
How to use checksums
6584ff6006dfcfdff6b632c6e489aec1c91a643bb1cc9ea44892054779237943
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.11

Release files / create_agent-0.0.3-py3-none-any.whl

Download URL create_agent-0.0.3-py3-none-any.whl
Size 21.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
33c8db46ebaff492dd4deb987dbe7ad85240db10dd777b4e7f119e2da3d1e163
BLAKE2b-256 checksum
How to use checksums
f4ebcc3938b236bc68497d3c8088b9216eb561d4fdca584b0f85c8221478e3b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.11

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

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