haseeb-heaven/open-agent
À propos
Open-source AI agent that brings the power of open models directly into your terminal.
IA et apprentissage automatiqueProgression mesurée des étoiles
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalSupport Project:
OpenAgent — Open-Source Agent for Your Terminal
Describe a task in plain English. OpenAgent plans, uses tools, and delivers — with free, local, and BYOK cloud models. No account required.
Main UI

npm install && npm run build
npm start -- --free "analyze sales.csv and plot top 10 customers"
Free OpenRouter models · local Ollama / LM Studio · Windows / Mac / Linux · no vendor lock-in
Install
Node.js 22+.
From npm (published as
@haseeb_heaven/open-agent):
npm install -g @haseeb_heaven/open-agent
openagent
From source — latest multi-provider work is on feature:
git clone --branch feature https://github.com/haseeb-heaven/open-agent.git
cd open-agent
npm install && npm run build
npm start
Quick start
npm start # local-first (Ollama if running)
npm start -- --free "analyze this CSV" # free/cheap catalog + auto-fallback
npm start -- --models # list models by provider
npm start -- --byok # interactive keys → .env
npm start -- -m openrouter-free
npm start -- -m ollama/llama3.1:8b
npm start -- --provider groq -m llama-3.1-8b-instant
In-session: /models, /byok [provider key], /websearch.
API keys
Local (Ollama, LM Studio): no key. Cloud: one env var per provider — copy
.env.example → .env, or use --byok / /byok.
| Provider | Env |
|---|---|
| OpenAI | OPENAI_API_KEY |
| Anthropic | ANTHROPIC_API_KEY |
| Gemini | GEMINI_API_KEY |
| Groq | GROQ_API_KEY |
| DeepSeek | DEEPSEEK_API_KEY |
| NVIDIA | NVIDIA_API_KEY |
| Together | TOGETHER_API_KEY |
| HuggingFace | HF_TOKEN |
| OpenRouter | OPENROUTER_API_KEY |
| Cerebras | CEREBRAS_API_KEY |
| Z.ai | Z_AI_API_KEY |
Web search
google_web_search auto-picks a backend from available keys (you do not
need all of them). No-key fallback chain: Exa (hosted MCP, no key) →
DuckDuckGo.
| Model family | Best backend |
|---|---|
| Gemini | Google grounding (GEMINI_API_KEY) |
| Open-source / free | Exa (no key required) |
| Local | DuckDuckGo (no key) |
Also: Brave, Tavily, Serper. Force with WEB_SEARCH_PROVIDER=exa (or brave /
tavily / serper / gemini / duckduckgo).
| Backend | Env | Signup |
|---|---|---|
| Exa | EXA_API_KEY (opt.) |
keys |
| Brave | BRAVE_API_KEY |
keys |
| Tavily | TAVILY_API_KEY |
app |
| Serper | SERPER_API_KEY |
key |
| Gemini | GEMINI_API_KEY |
AI Studio |
/websearch # wizard (★ = recommended for current model)
/websearch list
/websearch open brave # open signup if key empty
/websearch brave <key> # save to .env
Models
Registry: configs/models.toml. Full matrix:
Models.MD.
| Flag | Effect |
|---|---|
--provider <id> |
ollama, lmstudio, openai, anthropic, gemini, groq, … |
-m, --model |
Registry key or provider/model |
--free |
Free/cheap rotation + fallback |
--models |
Print catalog and exit |
--byok |
Interactive key setup |
-y, --yolo |
Auto-approve tools (trusted workspaces only) |
Extensions & marketplace
OpenAgent installs extensions from the Slack marketplace (and any Claude
.claude-plugin manifest). Supported manifest formats:
.claude-plugin/plugin.json(Claude-style) — reads sibling.mcp.jsonfor MCP server declarationsopen-agent-extension.json.mcp.json
npm start -- --install-extension <url-or-path>
npm start -- --auto # skip trust prompts for trusted extensions
In Auto mode, workspace-trust consent is auto-approved so extension install is non-interactive. Approval mode can be changed live at runtime.
Docs
docs/ · Quickstart · Free models · Local · Providers · Errors
Testing
From repo root. Vitest loads repo-root .env automatically (missing keys
skip; live quota soft-skips).
npm test
# Unit — web search
npx vitest run src/websearch --root packages/core
# Unit — models / registry
npx vitest run src/providers --root packages/core
# Live — web search (.env keys)
npx vitest run src/websearch/live.websearch.test.ts --root packages/core
# Live — cloud models (bash)
RUN_LIVE_PROVIDER_TESTS=1 npx vitest run src/providers/cloud.integration.test.ts --root packages/core
# Live — local Ollama / LM Studio
RUN_LOCAL_PROVIDER_TESTS=1 npx vitest run src/providers/local.integration.test.ts --root packages/core
PowerShell live cloud:
$env:RUN_LIVE_PROVIDER_TESTS = '1'
Remove-Item Env:CI -ErrorAction SilentlyContinue
npx vitest run src/providers/cloud.integration.test.ts --root packages/core
Attribution
Based on Gemini CLI (Google LLC,
Apache-2.0). Modifications by Haseeb Mir (open-agent fork).
License
Apache-2.0 — see LICENSE.
Explorer des projets similaires
Chargement…