Skip to content

PyThaGoAI/Codai

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

CODAI - Evolved Intelligence

Created by Arian Rudd

Turn ideas into production-ready apps and solutions. Zero code required. CODAI enables anyone to build fully functional applications using natural language.

🌐 Website: codai.ai
🐦 Creator: @AriRudd

License: GPL v3 Author Website

Project Structure

CODAI/
β”œβ”€β”€ server/              # FastAPI backend
β”‚   β”œβ”€β”€ routes/         # API endpoints
β”‚   β”œβ”€β”€ middleware/     # Request middleware
β”‚   └── app.py         # Main application
β”œβ”€β”€ frontend/           # Next.js frontend
β”‚   β”œβ”€β”€ src/           # Source code
β”‚   β”‚   β”œβ”€β”€ components/# React components
β”‚   β”‚   β”œβ”€β”€ hooks/     # Custom hooks
β”‚   β”‚   └── lib/       # Utilities
β”‚   └── package.json   # Frontend dependencies
β”œβ”€β”€ core/              # Core backend functionality
β”‚   β”œβ”€β”€ api/          # Claude API integration
β”‚   β”œβ”€β”€ logging/      # Logging system
β”‚   └── schemas/      # Data schemas
β”œβ”€β”€ tools/            # Tool implementations
β”‚   β”œβ”€β”€ computer/     # Computer use tools
β”‚   β”œβ”€β”€ web/          # Web interaction
β”‚   └── pdf/          # PDF processing
β”œβ”€β”€ config/           # YAML configuration
└── Docs/             # Documentation

Prerequisites

  • Python 3.9+
  • Node.js 18+
  • Git
  • Anthropic API key

Deployment Options

🌐 Web-Based Version (Available Now)

The open-source web version allows you to run CODAI in your browser with full functionality. Perfect for:

  • Immediate access without installation
  • Cross-platform compatibility (Windows, Mac, Linux)
  • Team collaboration
  • Cloud deployment

πŸ’» Desktop Version (Available Now)

Native Electron desktop application with enhanced capabilities:

  • Self-contained application (no separate install required)
  • Local file system access with native dialogs
  • Bundled Python backend (no Python install needed)
  • Works offline once installed
  • Available for Windows, macOS, and Linux

Quick Start

  1. Clone the repository:
git clone https://github.com/thecodai/Codai
cd Codai
  1. Choose your platform:

For Desktop Application (Electron)

Windows

# Run the Electron setup wizard
.\setup-electron.ps1
# or
setup-electron.bat

# Start the desktop app
npm run dev

Linux/macOS

# Run the Electron setup
./setup-electron.sh

# Start the desktop app
npm run dev

For Web Application

Windows Users

Option A: PowerShell Setup (Recommended)

.\setup.ps1

This provides a user-friendly wizard interface with colored output and system checks.

Option B: Command Prompt

setup.bat

Option C: Python Module

python -m setup

Linux/macOS Users

Option A: Bash Setup Script (Recommended)

./setup.sh

This provides a user-friendly wizard interface with colored output and system checks.

Option B: Python Module

python -m setup

This will:

  • Create virtual environment
  • Install Python dependencies
  • Install frontend dependencies
  • Set up configuration files
  • Initialize the database
  1. Set your API key in the UI:

Running the Application

Backend (Port 8000)

python run_server.py
# Or with options:
python run_server.py --env development --log-level debug

Frontend (Port 8001)

cd frontend
npm run dev

Testing

# Backend tests
pytest

# Frontend tests
cd frontend
npm test
npm run lint

What Makes CODAI Different

πŸš€ Turn Ideas Into Apps

  • No Coding Required: If you can describe it, CODAI can build it
  • As Simple as Google: Just type what you want in plain English
  • Complete Applications: Not just code snippets - full, production-ready apps
  • Open Source: Web-based version available now, desktop version coming soon

🧠 Advanced AI Capabilities

  • Claude 4 Integration: Latest Anthropic models with extended thinking
  • Intelligent Context Management: Automatic summarization and token optimization
  • Multi-Model Support: Claude 4 Opus, Sonnet, and Haiku models
  • Computer Use: Automated screen capture and interaction capabilities

πŸ’Ό Enterprise-Ready Features

  • Secure API Key Management: Military-grade encryption (AES-256-GCM)
  • Session Management: Persistent conversations with import/export
  • Comprehensive Monitoring: Real-time performance and usage analytics
  • Error Recovery: Robust error handling with automatic recovery

Configuration

Environment Variables (.env)

# Encryption secret (auto-generated on first run if not set)
ENCRYPTION_SECRET=<auto-generated-or-your-custom-secret>

# Optional - users can add via UI instead
ANTHROPIC_API_KEY=sk-ant-api-key

# Environment
APP_ENV=development

Note: The encryption secret is now automatically generated on first server start if not provided.

Configuration Files

  • config/base.yaml - Base configuration
  • config/environments/*.yaml - Environment overrides
  • config/local.yaml - Local overrides (git ignored)

API Key Management

Users can add their Anthropic API keys through the UI:

  1. Open Settings (gear icon)
  2. Navigate to API Keys
  3. Enter your key (must start with sk-ant-)
  4. Save and test the connection
  5. Click "Continue to Chat" when validated

Keys are:

  • Encrypted with AES-256-GCM
  • Stored securely in the backend database
  • Never exposed in logs or responses
  • Tied to user sessions

Extended Thinking

Configure complex reasoning in config/base.yaml:

ai:
  extended_thinking:
    enabled: true
    budget_tokens: 5000  # 1024-16000
    show_thinking: true
    auto_detect: true

Security

  • API Keys: Encrypted storage with session isolation
  • CORS: Configured for development/production
  • Rate Limiting: 60 requests/minute per IP
  • Input Validation: Comprehensive request validation
  • Audit Logging: All API key operations logged

Documentation

See /Docs/New/ for detailed documentation:

  • Architecture overview
  • Feature implementations
  • API documentation
  • Configuration guide

License & Attribution

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.

Copyright (c) 2025 Arian Rudd

Attribution Requirements

The author kindly requests that any derivative works or implementations:

  1. Keep the CODAI branding or mention "Based on CODAI" in your derivative works
  2. Include attribution: "Originally created by Arian Rudd"
  3. Link back to this repository when practical

Branding Guidelines

The CODAI logo and visual identity are proprietary. Please see BRANDING.md for usage guidelines.

GPL License Requirements

Under GPL-3.0, you must:

  • Provide source code when distributing the software
  • License any derivative works under GPL-3.0
  • Include copyright and license notices
  • Document any changes made to the original code

Disclaimer

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Acknowledgments

Created and maintained by Arian Rudd

CODAI represents a significant investment of time and effort. If you find it useful, please consider:

  • ⭐ Starring this repository
  • πŸ”— Linking back to this project
  • πŸ“£ Sharing your experience with CODAI
  • 🌐 Visiting codai.ai for more information

Contact

For questions about commercial use or custom implementations, please visit codai.ai or reach out on X.

About

CODAI - Evolved Intelligences

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 48.3%
  • TypeScript 48.0%
  • CSS 2.0%
  • JavaScript 0.9%
  • PowerShell 0.4%
  • Shell 0.3%
  • Other 0.1%