Skip to content

smouj/AICodeStudio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

31 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

image

AICodeStudio

AI-native workspace for code agents

License: MIT Next.js TypeScript React PWA PRs Welcome

An open-source, AI-first code editor that runs in your browser. Install it as a desktop app β€” no Electron required.

🌐 Live Demo Β· πŸ“₯ Install Β· ✨ Features Β· πŸš€ Quick Start Β· 🀝 Contributing


AICodeStudio HUD Overview


Screenshots

All screenshots are captured from the real running application β€” no mockups or AI-generated images.

Agent Control Panel Editor + Terminal
Agent Control Editor + Terminal
File Explorer Search in Files
File Explorer Search
Source Control GitHub Integration
Source Control GitHub
Extensions Marketplace Themes Marketplace
Extensions Themes
Docker Management Database Viewer
Docker Database
Language Servers Runtime Status / Settings
Language Servers Runtime Status
Canvas Navigation Command Palette
Canvas Command Palette
Collaboration TODOs
Collaboration TODOs

What is AICodeStudio?

AICodeStudio is an open-source, AI-native IDE designed for code agents. Unlike traditional IDEs that treat AI as an add-on, AICodeStudio puts AI agents at the center of the development experience with a dedicated Agent Control panel, real-time provider status, and an agent-first HUD.

Built with Next.js 16, React 19, and Monaco Editor, it runs entirely in the browser and can be installed as a PWA for a native desktop experience without Electron. The IDE features a professional dark theme with a carefully crafted design token system, ensuring visual consistency across all components.


Agent-first HUD

The HUD (Heads-Up Display) is designed around the agent workflow:

  • Mission Bar β€” Shows workspace, git branch, active agent, execution mode (Ask/Plan/Build/Review/Auto), trust mode, and AI provider status at a glance
  • Agent Control Panel β€” Dedicated sidebar with agent card, permissions, activity timeline, and quick actions
  • Activity Bar β€” Icons organized by group: Workspace, Agents, Runtime, Integrations
  • Status Bar β€” Real-time git changes, runtime mode, provider status, and file info
  • Runtime Health β€” Visual chips showing which services are active, simulated, or unavailable

Features

πŸ€– AI-Powered Development

  • User-Configurable AI Providers β€” Add any AI provider with your own API key; keys are sent only to your instance and are not persisted by default
  • Real AI Chat β€” Direct API integration with real AI models through configurable endpoints; no simulated responses or canned fallbacks
  • Connection Testing β€” Test your AI provider connection before saving to verify everything works
  • Quick Actions β€” One-click AI actions: Explain Code, Find Bugs, Optimize, Review Staged Changes, Create Implementation Plan, Run Tests
  • Markdown Rendering β€” AI responses render with full Markdown formatting including code blocks

🎀 Voice-to-Code

  • Voice Commands β€” Speak natural language commands to create functions, add imports, explain code, find bugs, and refactor
  • Real-Time Transcription β€” Live speech-to-text using the Web Speech API with visual waveform feedback
  • Multi-Language Support β€” Voice recognition in English, Spanish, French, German, Chinese, and Japanese

πŸ“ Professional Code Editor

  • Monaco Editor β€” The same editor engine that powers VSCode with IntelliSense, bracket matching, and code folding
  • Configurable Settings β€” Font size, tab size, minimap, word wrap, line numbers, ligatures, bracket pairs β€” all adjustable in real-time
  • Syntax Highlighting β€” 20+ languages with custom dark theme optimized for readability
  • Multiple Tabs β€” Work with multiple files simultaneously with unsaved change indicators and auto-save

πŸ“‚ Virtual File System

  • Create Files & Folders β€” Build your workspace from scratch with real file operations
  • File System Access API β€” Open local directories directly in the browser when supported
  • Auto-Save β€” Changes are automatically persisted to the virtual file system

🐳 Docker Container Management

  • Container Operations β€” Start, stop, restart, and remove Docker containers directly from the IDE
  • Security-First β€” Docker is disabled by default; requires AICODE_ENABLE_DOCKER=true and DOCKER_HOST to be explicitly set

πŸ—„οΈ Database Viewer & Editor

  • SQLite Support β€” Connect to SQLite databases with full schema browsing and query execution
  • Read-Only by Default β€” Only SELECT/WITH/PRAGMA/EXPLAIN are allowed unless AICODE_DB_WRITE_ENABLED=true

πŸ‘₯ Collaborative Editing (Simulated)

  • Room Management β€” Create and join collaboration rooms
  • Experimental β€” Real-time sync requires a WebSocket server; currently uses in-memory state

πŸ” Real Search

  • Search in Files β€” Searches through actual file contents in your workspace
  • Regex Support β€” Use regular expressions for advanced pattern matching

πŸ”— GitHub Integration

  • Clone Repositories β€” Clone any public GitHub repo via the API; files are loaded into your workspace
  • Search GitHub β€” Search repositories directly using the GitHub Search API

πŸ“Š Advanced Git Operations

  • Full Change Tracking β€” Stage/unstage individual files, discard changes, view diffs
  • Commit Workflow β€” Write commit messages with templates, signed-off-by, and amend support
  • Branch Management β€” Create, switch, and delete branches

πŸ’» Integrated Terminal

  • Virtual Terminal β€” touch, mkdir, rm, mv, cat operate on the virtual file system
  • Visual Error/Success States β€” Command output is color-coded for clarity
  • Real PTY β€” Available when AICODE_ENABLE_TERMINAL=true with node-pty installed (requires server mode)
  • Labeled Correctly β€” Virtual mode is labeled "workspace shell", not "bash"

πŸ”§ Language Server Protocol (Simulated)

  • Multi-Language Support β€” 10 language configurations
  • Simulated Diagnostics & Completions β€” Basic syntax-aware suggestions and diagnostics
  • Real LSP β€” Available when AICODE_ENABLE_LSP=true with language servers installed (requires server mode)

🧩 Extension Marketplace

  • Open VSX Registry β€” Browse and install extensions from the Open VSX Registry
  • Full Lifecycle β€” Install, uninstall, and toggle extensions

🎨 Custom Themes Marketplace

  • Pre-Built Themes β€” Nord, Dracula, GitHub Dark, Solarized, Monokai, and RosΓ© Pine
  • Theme Builder β€” Create custom themes with color pickers and live preview

πŸ—ΊοΈ Canvas Navigation

  • Visual File Graph β€” Interactive canvas-based visualization of your workspace files
  • 3 Layout Modes β€” Tree, Grid, and Force-directed layouts

πŸ“¦ PWA Desktop Installation

  • Install as Desktop App β€” Works like a native application on Windows, macOS, and Linux
  • Offline Support β€” Service worker caching for core assets
  • Standalone Mode β€” No browser chrome; full-screen IDE experience

Real vs Demo/Static

AICodeStudio can run in two modes with different capability levels:

Feature Static Demo Server Mode Status
Monaco Editor Yes Yes Real
Virtual FS Yes Yes Real
AI Chat If provider set Yes Real if provider configured
Search in Files Yes Yes Real
Extensions Yes Yes Real (Open VSX)
Themes Yes Yes Real
Docker No Optional Protected by flag
Terminal PTY Virtual only Optional Real if AICODE_ENABLE_TERMINAL=true
LSP Simulated Optional Simulated by default; real if AICODE_ENABLE_LSP=true
Database No SQLite only Read-only by default
Collaboration No Simulated In-memory rooms only
Git (server) No Yes Sandboxed to WORKSPACE_DIR
File System Access Yes Yes Browser API (when supported)
PWA Install Yes Yes Real

πŸ“₯ Installation

Prerequisites

  • Node.js 18+ or Bun 1.0+
  • npm, yarn, pnpm, or bun

Install

# Clone the repository
git clone https://github.com/smouj/AICodeStudio.git
cd AICodeStudio

# Install dependencies
npm install

# Start development server
npm run dev

Open http://localhost:3000 in your browser.

Production Build

AICodeStudio supports two deployment modes:

# Server mode (full IDE with APIs)
npm run build:server
npm start

# Static demo mode (GitHub Pages)
npm run build:static
# Output in out/ directory

See DEPLOYMENT.md for detailed deployment instructions.

Install as Desktop App

  1. Open AICodeStudio in Chrome, Edge, or any Chromium-based browser
  2. Click the install icon in the browser address bar
  3. Click Install β€” AICodeStudio will launch as a standalone desktop application
  4. No Electron needed β€” it runs as a PWA with native-like performance

Visual System

AICodeStudio uses a centralized design token system for visual consistency:

  • Backgrounds: Root (#080c12), Base (#050810), Panel (#080c12), Surface (#0a0e14), Elevated (#0d1117)
  • Text hierarchy: Primary, Secondary, Muted, Dim, Disabled β€” ensuring proper contrast at every level
  • Accent: Teal (#00d4aa) used sparingly for agent/active states only
  • Semantic colors: Success (green), Warning (amber), Danger (red), Info (blue)
  • Radius: 2–4px consistently across all components
  • Shadows: Minimal, functional shadows without glow effects

The design avoids:

  • Excessive glows or neon effects
  • Generic SaaS aesthetics
  • Poor contrast or illegible text
  • Overuse of teal accent color
  • Inconsistent rounded corners

Brand Assets

Brand assets are located in public/brand/:

  • aicodestudio-logo.svg β€” Full logo with background
  • aicodestudio-mark.svg β€” Icon-only mark
  • aicodestudio-logo-dark.svg β€” Logo variant for dark surfaces
  • aicodestudio-social-banner.svg β€” Social media banner

Screenshots are in public/screenshots/.


Runtime Capabilities

Runtime capabilities are determined by server flags and environment:

Flag Effect
AICODE_ENABLE_DOCKER=true Enable Docker container management
AICODE_ENABLE_TERMINAL=true Enable real PTY terminal (requires node-pty)
AICODE_ENABLE_LSP=true Enable real LSP integration
AICODE_DB_WRITE_ENABLED=true Allow write operations on databases
DOCKER_HOST Docker daemon address (required with Docker flag)
WORKSPACE_DIR Git sandbox directory

⌨️ Keyboard Shortcuts

Shortcut Action
Ctrl+Shift+P Open Command Palette
Ctrl+Shift+F Search in Files
Ctrl+Shift+G Source Control
Ctrl+Shift+A AI Assistant
Ctrl+Shift+X Extensions
`Ctrl+`` Toggle Terminal
Ctrl+, Open Settings
Ctrl+T Toggle Theme
Ctrl+Enter Execute Query (Database)

πŸ—οΈ Architecture

src/
β”œβ”€β”€ app/
β”‚   β”œβ”€β”€ api/           # API routes (ai, git, docker, database, etc.)
β”‚   β”œβ”€β”€ globals.css    # Global styles & design tokens
β”‚   β”œβ”€β”€ layout.tsx     # Root layout with PWA metadata
β”‚   └── page.tsx       # Main entry point
β”œβ”€β”€ components/
β”‚   β”œβ”€β”€ hud/           # Design tokens & HUD primitives
β”‚   β”œβ”€β”€ ide/           # IDE components
β”‚   └── ui/            # shadcn/ui component library
β”œβ”€β”€ store/             # Zustand global state
β”œβ”€β”€ lib/               # Utilities, security, server flags

πŸ› οΈ Tech Stack

Technology Purpose
Next.js 16 React framework with App Router
React 19 UI library with compiler
TypeScript 5 Type-safe development
Monaco Editor VSCode's editor engine
Zustand Lightweight state management
Tailwind CSS 4 Utility-first styling
shadcn/ui Accessible UI components
Lucide Icons Consistent icon set
Yjs CRDT-based real-time collaboration
Open VSX Extension marketplace registry
PWA Desktop installation support
Prisma Database ORM
isomorphic-git Browser Git operations

🎯 Roadmap

  • Virtual file system with real file operations
  • Real search across file contents
  • User-configurable AI providers with real API calls
  • GitHub API integration for clone/search/trending
  • Git staging and commit workflow (server mode)
  • Virtual terminal with file system commands
  • Agent-first HUD with Mission Bar and Agent Control
  • Centralized design token system
  • Extension marketplace (Open VSX)
  • Docker container management (requires explicit opt-in)
  • SQLite database viewer and query editor
  • Custom themes marketplace with theme builder
  • Voice-to-code AI integration
  • Canvas navigation for visual file graphs
  • PWA desktop installation
  • Security hardening (path sandboxing, SQL guard, secret protection)
  • File System Access API for local files
  • Real PTY terminal over WebSocket
  • Canvas-based real-time collaborative whiteboard
  • Real-time collaboration via WebSocket (Yjs)
  • Real LSP integration for TypeScript/JavaScript
  • Multi-database adapters (PostgreSQL, MySQL, MongoDB)

πŸ“Š Feature Status

Feature Static Demo Server Mode Status
Monaco Editor Yes Yes Real
Virtual FS Yes Yes Real
AI Chat If provider set Yes Real if provider configured
Search in Files Yes Yes Real
Extensions Yes Yes Real (Open VSX)
Themes Yes Yes Real
Docker No Optional Protected by flag
Terminal PTY Virtual only Optional Real if AICODE_ENABLE_TERMINAL=true
LSP Simulated Optional Simulated by default; real if AICODE_ENABLE_LSP=true
Database No SQLite only Read-only by default
Collaboration No Simulated In-memory rooms only
Git (server) No Yes Sandboxed to WORKSPACE_DIR
File System Access Yes Yes Browser API (when supported)
PWA Install Yes Yes Real

🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

See CONTRIBUTING.md for detailed guidelines.


πŸ“„ License

This project is licensed under the MIT License β€” see the LICENSE file for details.


Built with care by the AICodeStudio Team

⬆ Back to Top

About

Next-generation open-source AI-powered IDE with OpenClaw & Hermes integration, Monaco Editor, GitHub connectivity, and PWA desktop installation

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors