AI Forge is a powerful, interactive tool that leverages AI to supercharge your development workflow. It's a code reviewer, a code generator, an image generator, and a secure workspace all in one, with a persistent, searchable, and encrypted local database to save all your work.
- Unified Chat Interface:
- Engage in dynamic conversations with AI, powered by customizable personas.
- Reference and discuss files from your workspace directly in the chat.
- The Workspace:
- A dedicated panel to create, upload, and manage documents, code files, and images.
- Seamlessly provide file content as context for your AI conversations.
- Encrypted Forge Vault (Local Database):
- Master Password Security: Your entire vault is encrypted using your own master password.
- Persistent Storage: Save your chat sessions, personas, and workspace files directly in your browser using IndexedDB. Everything stays on your machine, fully encrypted.
- Tagging & Organization: Add custom tags to any saved project to keep your work organized.
- Full-Text Search: Instantly find any saved item by its content, prompt, or tags.
- Custom AI Personas:
- Switch between different AI characters (e.g., Code Reviewer, Creative Assistant).
- Create and save your own personas with custom system instructions to tailor the AI's behavior.
- Multi-Provider Support:
- Connect to Google Gemini.
- Connect to any OpenAI-Compatible backend (Ollama, LM Studio, etc.).
- Client-Side Privacy: All code, prompts, and API keys are processed and stored locally in your browser. Nothing is stored on a server.
There are three ways to use AI Forge:
- Local Development
- Hosted on GitHub Pages
- As a Browser Extension
To run AI Forge on your own machine:
- You don't need to install anything! Just open the
index.html
file in your web browser. - For the best experience (to avoid potential CORS issues with local models), run a simple local web server:
# If you have Python 3 python -m http.server # Or use the 'serve' npm package npx serve .
- Navigate to the local URL provided by the server (e.g.,
http://localhost:8000
).
You can host your own version of AI Forge for free on GitHub Pages.
- Create a new public repository on GitHub.
- Upload all the project files (
index.html
,index.tsx
,components/
, etc.) to the repository. - In your repository's settings, navigate to the Pages tab.
- Under "Build and deployment", select Deploy from a branch.
- Choose the
main
(ormaster
) branch and the/ (root)
folder, then click Save. - Your personal AI Forge instance will be live in a few minutes at
https://<your-username>.github.io/<your-repo-name>/
.
Click the gear icon in the header to open the settings panel.
- Go to Google AI Studio to generate an API key.
- In AI Forge settings, select the Google Gemini provider.
- Paste your API key into the "API Key" field.
- You can change the model name if you wish (e.g.,
gemini-2.5-flash
for text,imagen-3.0-generate-002
for images). - Click Save.
You can connect AI Forge to a local model running with Ollama.
- Install and run Ollama on your machine.
- Pull a model you want to use (e.g.,
llama3
,codellama
):ollama pull llama3
- Start the Ollama server. By default, it runs at
http://localhost:11434
. - In AI Forge settings, select the OpenAI-Compatible provider.
- Set the API Endpoint to your Ollama server's completion endpoint:
http://localhost:11434/v1/chat/completions
. - Set the Model Name to the model you pulled (e.g.,
llama3
). - The API Key can usually be left blank or set to
ollama
. - Click Save.
Note on CORS: When connecting to a local model from a
file://
URL, your browser may block the request due to security policies (CORS). To avoid this, run AI Forge from a local web server as described in the "Running Locally" section.
This project is structured to be easily converted into a browser extension.
-
Chrome:
- Open Chrome and navigate to
chrome://extensions
. - Enable Developer mode.
- Click Load unpacked.
- Select the folder containing the AI Forge project files.
- The AI Forge icon will appear in your extension toolbar.
- Open Chrome and navigate to
-
Firefox:
- Open Firefox and navigate to
about:debugging
. - Click This Firefox and then Load Temporary Add-on....
- Select the
manifest.json
file from the project folder.
- Open Firefox and navigate to
The extension will open AI Forge in a popup window, providing a convenient way to access it anytime.