Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available: 6.14.0
metadata
title: Fyodor IDE
emoji: π»
colorFrom: blue
colorTo: gray
sdk: gradio
sdk_version: 6.0.1
app_file: app.py
pinned: true
license: mit
short_description: A small demo of a future IDE named Fyodor-IDE
tags:
- mcp-in-action-track-enterprise
π‘οΈ Fyodor IDE
Isolated AI Coding Environment for Secure Python Development
A secure, enterprise-grade AI coding assistant that executes code in ephemeral cloud sandboxes. Built with Gradio 6, MiniMax, and E2B for zero-trust code execution.
π Features
1. Zero-Trust Security Architecture
- Sandboxed Execution: All Python code runs in E2B (Firecracker VMs), ensuring complete isolation from the host server
- No Internet Access: The agent is restricted to internal tools and libraries, preventing unauthorized data exfiltration
- Ephemeral Environments: Each execution starts fresh with no persistent state
2. "Mini IDE" Experience
- Dual-Column Layout: Chat interface on the left, live code editor on the right
- Live Edits: Modify AI-generated code directly in the browser and re-run it instantly
- Artifact Support: Renders matplotlib plots, pandas DataFrames, and images inline
- Syntax Highlighting: Full Python code highlighting for better readability
3. Enterprise Session Management
- Time-Boxed Sessions: Every session hard-resets after 15 minutes for security
- State Isolation: User states (history, code) are kept in memory and never written to disk
- No Persistent Storage: Ensures complete data privacy and compliance
4. Mobile Responsive
- Adaptive Layout: Full responsive CSS that stacks vertically on mobile devices
- Coding on the Go: Access your AI coding assistant from any device
βοΈ Deployment on Hugging Face Spaces
Quick Start
Create a New Space
- Go to Hugging Face Spaces
- Click "Create new Space"
- Select Gradio as the SDK
- Choose a name for your Space (e.g.,
fyodor-ide)
Upload Files
- Upload
app.pyandrequirements.txtto your Space
- Upload
Configure Secrets
- Navigate to Settings β Variables and secrets
- Add the following secrets:
MINIMAX_API_KEY: Your MiniMax API key (Get one here)E2B_API_KEY: Your E2B API key (Get one here)HF_TOKEN: (Optional) Your Hugging Face token if using HF inference models
Launch
- Your Space will build and launch automatically
- Access your IDE at
https://huggingface.co/spaces/YOUR_USERNAME/fyodor-ide
Environment Variables
| Variable | Required | Description |
|---|---|---|
MINIMAX_API_KEY |
β Yes | API key for MiniMax AI model |
E2B_API_KEY |
β Yes | API key for E2B sandbox execution |
HF_TOKEN |
β¬ Optional | Hugging Face token for additional models |
ποΈ Architecture
βββββββββββ ββββββββββββββββ βββββββββββββββ
β User ββββββββββΆβ Fyodor IDE ββββββββββΆβ MiniMax-M2 β
β Browser β β Gradio UI β β AI Model β
βββββββββββ ββββββββββββββββ βββββββββββββββ
β β
βΌ βΌ
ββββββββββββββββ βββββββββββββββ
β Code Editor βββββββββββPython Code β
β (Live) β β Generation β
ββββββββββββββββ βββββββββββββββ
β
βΌ
ββββββββββββββββ
β E2B Sandbox β
β (Firecracker)β
ββββββββββββββββ
β
βΌ
ββββββββββββββββ
β Logs, Plots β
β & Output β
ββββββββββββββββ
π Usage Guide
Basic Workflow
- Ask: Type a coding request like "Simulate a stock price random walk and plot it"
- View: The AI generates Python code in the right-hand editor panel
- Edit: Modify parameters or logic directly in the code editor
- Run: Click βΆοΈ Run Modified Code to execute in the secure sandbox
- Export: Click β¬οΈ Export .py to download your code before the session expires
Example Prompts
- "Create a pandas DataFrame with sales data and plot a bar chart"
- "Generate 1000 random numbers and show a histogram"
- "Implement quicksort and visualize the sorting process"
- "Fetch iris dataset and train a simple classifier"
Session Management
- Session Duration: 15 minutes maximum
- Auto-Reset: Sessions automatically clear after timeout
- No Persistence: Export your work before leaving!
π οΈ Tech Stack
- Frontend: Gradio 6 (Python web framework)
- AI Model: MiniMax-M2 (code generation)
- Sandbox: E2B (Firecracker VM isolation)
- Language: Python 3.10+
π Security Features
- β Zero Network Access: Sandboxes cannot access the internet
- β Process Isolation: Each execution runs in a separate VM
- β Time-Limited Sessions: Automatic session expiration
- β No Disk Persistence: All data stays in memory
- β Input Sanitization: Code is validated before execution
π Requirements
gradio>=6.0.0
e2b-code-interpreter
openai # or your preferred AI SDK
python-dotenv
π€ Contributing
This project is designed for Hugging Face Spaces deployment. To suggest improvements:
- Fork this Space
- Make your changes
- Submit a pull request or discussion thread
π License
MIT License - See LICENSE file for details
π Support
- Issues: Open a discussion in your Hugging Face Space
- Documentation: E2B Docs | Gradio Docs
- Community: Hugging Face Discord
β οΈ Disclaimer
This tool executes arbitrary code in sandboxed environments. While E2B provides strong isolation, always review generated code before execution. Not recommended for production data processing without additional security review.
Built with β€οΈ for secure AI-assisted development