Skip to content
/ e2b Public
forked from e2b-dev/E2B

e2b (english2bits) is an IDE powered by AI agents. Developers describe what they want to build by writing documentation. Then let AI agents with access to tools do the coding work.

License

Notifications You must be signed in to change notification settings

rooben-me/e2b

 
 

Repository files navigation

e2b e2b

Open-source IDE powered by AI agents that do the work for you

e2b-editor Example of AI agent building Stripe checkout. Left - technical specification written by human. Right - steps that the AI agent took and tools that it used to build the server route required by the specification.

What is e2b and how does it work?

e2b or etob (english2bits) is a new kind of development environment powered by AI. The main idea is that developers have access to AI agents that can use tools. The developer writes a short documentation or a technical spec in plain English and then lets the AI agent do the actual work. The AI agents have access to tools like writing to a file, running code, running commands, installing dependencies, deploying, etc. Agents operate in a secure sandboxed cloud environment that's powered by Firecracker. This way, you for example describe what a server route should do and the agent codes it for you. Like this example of an AI agent coding Stripe customer checkout based on a technical spec.

BYOM, BYOP, BYOT

While e2b will offer the "batteries-included" solution, our goal is to let users:

  • BYOM - Bring Your Own Model
  • BYOP - Bring Your Own Prompt
  • BYOT - Bring Your Own Tools

We think the AI-powered IDE for the future should be open-sourced and allow anybody to bring their models, customize the prompts, and develop custom tools for the agents. But we also plan to offer a cloud version with some features behind subscription though.

Supported models

Right now we support only OpenAI GPT-4 and GPT-3.5 models. By default the IDE uses GPT-3.5 but you can change it from the "Model" tab in the right sidebar menu.

Get started

If you want to to try the IDE locally the fastest way is doing the following steps which starts the app in Docker.

You will need:

  • OpenAI API key (support for more and custom models coming soon)
  • Docker
  • Node.js 16+
  • Free ports 3000, 49155, 54321, 54322

The first start of the Dockerized app is slower because it downloads and builds all the necessary containers. On a 2CPU 4GB RAM machine it takes cca. 6 minutes and doesn't require any interaction. The subsequent starts are way faster.

1. Add env var

Create .env file by copying the .env.example

cp .env.example .env

and fill in the following variable:

2. Start the app

npm start

Then open the page on http:https://localhost:3000.

npm run start starts local Supabase in the background - to stop it you have to run npm run stop.

If you want to run the project without using containers use the steps here. This is useful if you want to leverage hot reloading and develop the project.

Current state

e2b is a work in progress. The developer <--> AI agent cooperation creates completely new paradigms. We're exploring how the ideal UX, UI, and cooperation with the agents should look like. The app will surely go through a lot of changes in the short and medium term.

e2b currently support building only REST servers in Node.js. Specifically using the Express framework. We'll support more languages and frameworks with time. The goal for e2b is to eventually be able to handle any use-case.

How are we going to make money?

You will always be able to self-host e2b for free. We will also offer a cloud version. The current idea is to offer the base cloud version for free while having some features for individuals behind a subscription. We'll share more on pricing for companies and enterprises in the future.

Early demos

Roadmap

Short-term goals, in no particular order.

  • Come up with the name
  • Clean up codebase and provide instructions on how to run it locally
  • Set up a website
  • Launch the initial version

Development

For developing with hot reloading and contributing to the project you may want to run the app locally without Docker Compose (npm run start command). Here are the steps for how to do it.

You will need:

  • OpenAI API key (support for more and custom models coming soon)
  • Docker
  • Node.js 16+
  • Python 3.10+
  • Poetry 1.3.2+
  • Free ports 3000, 49155, 49160, 54321, 54322

1. Install dependencies

npm run install:all

2. Start local Supabase

npm run db:start

Local Supabase runs in the background - to stop it you have to run npm run db:stop.

3. Add env vars

Create .env file by copying the .env.example

cp .env.example .env

and fill in the following variables:

  • OPENAI_API_KEY - your OpenAI key
  • SUPABASE_SERVICE_ROLE_KEY - Supabase service role key you got in the previous step as service_role key: eyJh......
  • NEXT_PUBLIC_SUPABASE_ANON_KEY - Supabase anonymous key you got in the previous step as anon key: eyJh......

4. Start the app

npm run dev

Then open the page on http:https://localhost:3000 and sign in with the testing credentials:

Email

[email protected]

Password

[email protected]

About

e2b (english2bits) is an IDE powered by AI agents. Developers describe what they want to build by writing documentation. Then let AI agents with access to tools do the coding work.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 60.0%
  • TypeScript 38.3%
  • JavaScript 0.6%
  • CSS 0.6%
  • Dockerfile 0.3%
  • Makefile 0.1%
  • Other 0.1%