Visually craft, configure, and export sophisticated AI agent definitions—no internet or API keys required.
The Offline AI Agent Builder is a powerful, browser-based graphical user interface for designing AI agents. It provides an intuitive environment to define an agent's persona, system instructions, and, most importantly, the custom tools it can use. The entire configuration is validated in real-time and can be instantly exported as a clean, ready-to-use JSON file for your local models, private backends, or any other AI framework.
It's built for developers, researchers, and hobbyists who need a fast, secure, and flexible way to prototype and build AI agent configurations without being tied to a specific online service.
- 🎨 Intuitive GUI: A clean, Material Design 3 interface for a seamless building experience.
- 🔌 Offline First: Runs entirely in your browser. No data ever leaves your machine. Your privacy is paramount.
- 🔑 No API Keys Needed: Start building immediately without any sign-up or configuration.
- 🤖 Model-Agnostic: Define agents for any model, whether it's running locally on your machine (like Llama 3 or Mistral) or a private, custom API endpoint.
- 🛠️ Powerful Tool Editor:
- Easily add, remove, and configure tools.
- Define complex parameter schemas with support for
string
,number
,boolean
,object
, andarray
types. - Create deeply nested parameters for objects and arrays.
- Set default values and mark parameters as required.
- Manage tool versions with a dedicated
version
field.
- 🚀 Agent Generator: Kickstart your project by choosing from a rich library of pre-built agent personas, from a "JS Expert Debugger" to a "Luxury Travel Concierge".
- 👀 Real-time JSON Preview: Instantly see the generated JSON configuration as you build, with a one-click "Copy to Clipboard" button.
- ✅ Live Validation: The UI provides instant feedback, highlighting missing fields or name collisions to ensure your final configuration is valid.
- 🌗 Light & Dark Modes: A beautifully crafted theme toggle for your comfort.
- 📁 One-Click Export: Download your complete agent configuration as a perfectly formatted
.json
file.
-
Privacy & Security: Since it's a fully client-side application, your agent definitions, system instructions, and tool schemas are never sent over the network. This is ideal for proprietary or sensitive configurations.
-
Ultimate Flexibility: By decoupling the agent design from a specific model provider, you gain the freedom to switch between models (local, cloud, open-source, private) without redesigning your agent's core logic.
-
Rapid Prototyping: Stop hand-writing and debugging complex JSON schemas. The visual editor allows you to iterate on your agent's capabilities in seconds, not hours. See your changes reflected instantly and catch errors before you ever run your agent.
-
Clarity and Organization: A visual representation of your agent's tools and parameters makes it easier to understand, maintain, and share your designs with your team.
Building an agent is a straightforward process:
-
Define Agent Identity:
- Give your agent a
Name
andDescription
. - Write a powerful
System Instruction
that defines its persona, goals, and constraints. This is the agent's "constitution."
- Give your agent a
-
Specify a Model:
- In the
Model Configuration
card, enter the identifier for the model you intend to use (e.g.,llama3-7b-instruct
,my-custom-model-v2
).
- In the
-
Create Tools:
- Click
+ Add Tool
to create a new function your agent can call. - Give the tool a clear, descriptive
Tool Name
andDescription
. The model will use this information to decide when to use the tool. - Optionally, add a
Version
number.
- Click
-
Add Parameters:
- For each tool, click
+ Add Parameter
. - Define the
name
,type
,description
, and whether it'srequired
. - For
object
andarray
types, you can define nested parameters to build complex data structures. - Use the "Default Value" input to provide a default, which will be reflected in the exported JSON.
- For each tool, click
-
Export:
- As you build, the
Export Configuration
panel on the right updates in real-time. - When you're ready, click
Copy
to grab the JSON orExport
to download it as a file.
- As you build, the
⚡ Pro Tip: Don't want to start from scratch? Click the Agent Generator button in the header to load a complete, pre-built agent from our library. You can then customize it to fit your exact needs!
- React: For building the reactive user interface.
- TypeScript: For robust, type-safe code.
- Tailwind CSS: For a modern, utility-first styling workflow, configured with a Material Design 3 color palette.
This project is designed to be as simple as possible to run.
- Clone this repository.
- Open the
index.html
file directly in your web browser.
That's it! There are no build steps or dependencies to install.
Contributions are welcome! If you have ideas for new features, pre-built agents for the library, or UI improvements, please open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.