How to set up and run the Fragments by E2B For Free on Windows

Here’s a detailed step-by-step guide on how to set up and run the Fragments project by E2B on Windows:

Prerequisites

Before you begin, ensure you have the following installed on your Windows machine:

  1. Git: Download and install from https://git-scm.com/download/win
  2. Node.js and npm: Download and install the LTS version from https://nodejs.org/en/download/
  3. E2B API Key: Sign up at https://e2b.dev/ to obtain your API key
  4. LLM Provider API Key: Get Free Gemini API Key >> Gemini API – Google Cloud console

Step-by-Step Guide

1. Clone the Repository

  1. Open Command Prompt or PowerShell
  2. Navigate to the directory where you want to clone the project
  3. Run the following command:

    git clone https://github.com/e2b-dev/fragments.git

2. Install Dependencies

  1. Change into the project directory:

    cd fragments
  2. Install the required dependencies:

    npm i

3. Set Environment Variables

  1. In the project root directory, create a new file named .env.local
  2. Open the file in a text editor and add the following content, replacing the placeholder values with your actual API keys:
textE2B_API_KEY="your-e2b-api-key"
OPENAI_API_KEY="your-openai-api-key"
ANTHROPIC_API_KEY="your-anthropic-api-key"
GROQ_API_KEY="your-groq-api-key"
FIREWORKS_API_KEY="your-fireworks-api-key"
TOGETHER_API_KEY="your-together-api-key"
GOOGLE_AI_API_KEY="your-google-ai-api-key"
GOOGLE_VERTEX_CREDENTIALS="your-google-vertex-credentials"
MISTRAL_API_KEY="your-mistral-api-key"
XAI_API_KEY="your-xai-api-key"

Note: You only need to add the API keys for the providers you plan to use.

4. Start the Development Server

  1. In the Command Prompt or PowerShell, ensure you’re in the project root directory
  2. Run the following command to start the development server:textnpm run dev
  3. Open a web browser and navigate to http://localhost:3000 to view the application

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x