mirror of
https://github.com/browseros-ai/BrowserOS.git
synced 2026-05-18 19:16:22 +00:00
1.7 KiB
1.7 KiB
BrowserOS Agent - Development Guide
Build Instructions
Setup Steps
-
Clone the repository and install dependencies
git clone https://github.com/browseros-ai/BrowserOS-agent cd BrowserOS-agent yarn -
Create a
.envfile in the root directory// fyi, this key has very limited usage limits LITELLM_API_KEY=sk-xYnTqbxdLtQTrqVhtZgmrwNote: You'll need a LiteLLM API key to use the LLM features.
-
Build the extension
yarn build:devThis creates a
dist/folder with the compiled extension files.
Loading the Extension in Chrome
- Open Chrome and go to
chrome://extensions/ - Enable Developer mode (toggle in the top right)
- Click Load unpacked
- Select the
dist/folder from your project - The extension should now appear in your extensions list
Testing the Extension
- Click the extension icon in Chrome's toolbar
- The agent side panel should open
- Try some commands like:
- "List all my tabs"
- "Go to Google and search for TypeScript"
Switching LLM Providers (Optional)
If you want to use a different LLM provider instead of LiteLLM, you can use the mock settings configuration:
-
Enable mock LLM settings
- Open
src/config.ts - Set
MOCK_LLM_SETTINGStotrue
- Open
-
Configure your preferred provider
- Open
src/lib/llm/settings/LLMSettingsReader.ts - Update
MOCK_PREFERENCESwith your preferred provider and API keys
- Open
-
Rebuild the extension
yarn build:dev
Note: This is useful for testing with different LLM providers or when you want to use your own API keys directly.