Overview
Learn about IrisOS project structure and organization.
What is an IrisOS Project?
An IrisOS project is a structured application that uses the IrisOS framework to create and manage AI agents. Projects can range from simple single-agent applications to complex multi-agent systems.
Project Structure
A typical IrisOS project has the following structure:
my-irisos-project/
├── .env # Environment variables
├── .gitignore # Git ignore file
├── package.json # Project dependencies
├── tsconfig.json # TypeScript configuration
├── characters/ # Agent character files
│ ├── agent1.json
│ └── agent2.json
├── plugins/ # Custom plugins
│ └── my-plugin/
│ ├── index.ts
│ └── package.json
├── src/ # Source code
│ ├── index.ts # Entry point
│ ├── config.ts # Configuration
│ └── utils/ # Utility functions
├── tests/ # Test files
│ └── agent.test.ts
└── dist/ # Compiled outputGetting Started
Create a New Project
Project Configuration
Create package.json:
TypeScript Configuration
Update tsconfig.json:
Environment Configuration
Create .env file:
See Environment Variables for complete list.
Project Types
1. Single Agent Project
Simple project with one agent:
2. Multi-Agent Project
Project with multiple specialized agents:
3. API Server Project
Project that exposes agents via API:
4. Platform Integration Project
Project focused on platform integrations:
Character Files
Create character configurations in JSON format:
Plugin Integration
Add plugins to your project:
Development Workflow
Local Development
Testing
Building
Running
Project Management
Version Control
Create .gitignore:
Documentation
Maintain project documentation:
Best Practices
Environment Variables: Never commit
.envfilesCharacter Files: Keep characters in version control
Type Safety: Use TypeScript for type safety
Testing: Write tests for critical functionality
Documentation: Document your agents and configurations
Error Handling: Implement proper error handling
Logging: Use structured logging
Security: Validate all inputs and sanitize data
Project Templates
Start with a template:
Next Steps
Environment Variables - Configure your project
Quickstart Guide - Build your first agent
Deployment Guide - Deploy your project
Examples
Browse example projects:
Need Help?
Last updated