IntentKit is an autonomous agent framework that enables the creation and management of AI agents with various capabilities including blockchain interactions, social media management, and custom skill integration.
This project is currently in alpha stage and is not recommended for production use.
- 🤖 Multiple Agent Support
- 🔄 Autonomous Agent Management
- 🔗 Blockchain Integration (CDP for now, will add more)
- 🐦 Social Media Integration (Twitter,Telegram for now, will add more)
- 🛠️ Extensible Skill System
- 🔌 Extensible Plugin System
- Create a new directory and navigate into it:
mkdir intentkit && cd intentkit
- Download the required files:
# Download docker-compose.yml
curl -O https://raw.githubusercontent.com/crestalnetwork/intentkit/main/docker-compose.yml
# Download example environment file
curl -O https://raw.githubusercontent.com/crestalnetwork/intentkit/main/example.env
- Set up environment:
# Rename example.env to .env
mv example.env .env
# Edit .env file and add your configuration
# Make sure to set OPENAI_API_KEY
- Start the services:
docker compose up
- Create your first Agent:
curl -X POST http://127.0.0.1:8000/agents \
-H "Content-Type: application/json" \
-d '{
"id": "admin",
"name": "Admin",
"prompt": "You are an autonomous AI agent. Respond to user queries."
}'
- Try it out:
curl "http://127.0.0.1:8000/agents/admin/chat?q=Hello"
In terminal, curl can not auto esacpe special chars, so you can use browser to test. Just copy the url to your browser, replace "Hello" with your words.
- Clone the repository:
git clone https://github.com/crestalnetwork/intentkit.git
cd intentkit
- Set up your environment:
Python 3.10-3.12 are supported versions, and it's recommended to use 3.12.
If you haven't installed
poetry
, please install it first.
poetry install --with dev
poetry shell
- Configure your environment:
cp example.env .env
# Edit .env with your configuration
- Run the application:
# Run the API server in development mode
uvicorn app.entrypoints.api:app --reload
# Run the autonomous agent scheduler
python -m app.entrypoints.autonomous
"Create Agent" and "Try it out" refer to the Docker section.
Work in progress
The application can be configured using environment variables or AWS Secrets Manager. Key configuration options:
ENV
: Environment (local, or others)DB_*
: PostgreSQL Database configuration (Required)OPENAI_API_KEY
: OpenAI API key for agent interactions (Required)CDP_*
: Coinbase Developer Platform configuration (Optional)
See example.env
for all available options.
app/
: Core application codecore/
: Core modulesai.py
: Agent initialization and execution
entrypoints/
: Entry pointsautonomous.py
: Autonomous agent schedulerapi.py
: API entrypoint
config/
: Configuration managementconfig.py
: Configuration loading and validation
models/
: Database modelsdb.py
: Database models and connection
skills/
: Skill implementationsskill_sets/
: Predefined skill set collectionsutils/
: Utility functions
- Create a new skill in the
skill/
directory - Implement the skill interface
- Register the skill in
skill/__init__.py
Contributions are welcome! Please read our Contributing Guidelines before submitting a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.