YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

Open Agent

An agentic coding assistant for VS Code that runs on Hugging Face Inference Providers or any OpenAI-compatible server (vLLM, SGLang, llama.cpp, Ollama, OpenAI, ...).

It is built to be a drop-in switch from Claude Code: it reads the same instruction files, skills, memory and permission allowlists, and can resume your Claude Code sessions.

Install

curl -fsSL https://huggingface.co/qgallouedec/open-agent/resolve/main/install.sh | sh

It installs the extension in VS Code, Cursor, Windsurf or VSCodium, whichever are on the machine (with Remote-SSH, run it in the remote terminal). Without a terminal: download open-agent.vsix and run Extensions: Install from VSIX…. Running the same command again updates it.

Then reload the window. Open Agent has its own icon in the activity bar: the Sessions list shows this workspace's Open Agent and Claude Code conversations, newest first. Click one to open it in an editor tab (or bring its tab forward), and + starts a new conversation in a new tab. Open tabs come back after a window reload.

Models

By default it talks to https://router.huggingface.co/v1. If you are logged in with hf auth login (or have HF_TOKEN set), nothing else is needed. Otherwise click Sign in to Hugging Face and paste a token with the "Make calls to Inference Providers" permission. The token is kept in VS Code's secret storage.

Click the model name in the header to pick a model. The list shows the router's models that support tool calling. When only some of a model's providers support tools, the model is pinned to the fastest one that does (model:provider).

For another server, set openAgent.baseUrl (e.g. http://localhost:8000/v1) and, if it needs one, run Open Agent: Set API Key (falls back to OPENAI_API_KEY). vLLM needs --enable-auto-tool-choice --tool-call-parser <parser> for tool calling.

What carries over from Claude Code

Read from
Instructions ~/.claude/CLAUDE.md, and AGENTS.md / CLAUDE.md / CLAUDE.local.md from / down to the workspace (symlinked duplicates included once)
Skills .claude/skills/, .agents/skills/, ~/.claude/skills/ (also invokable as /<skill-name>)
Memory ~/.claude/projects/<project>/memory/MEMORY.md, which the agent can also append to
Permissions permissions.allow / deny in ~/.claude/settings*.json and .claude/settings*.json, e.g. Bash(git fetch *), Read(//tmp/**). "Always allow" writes to .claude/settings.local.json like Claude Code does
Sessions The Sessions list (and ↺ in a chat) shows both Open Agent and Claude Code conversations for the workspace. Resuming a Claude Code session converts it (since its last compaction, rewound branches skipped, Claude Code's tool calls mapped to Open Agent's) and continues as a new Open Agent session; the Claude Code file is never modified
Shortcuts Ctrl/Cmd+Esc toggles focus between the chat and the code, Ctrl/Cmd+Shift+Esc new conversation, Alt+K insert an @-mention of the selection, Shift+Tab permission mode, Esc stop

While the Claude Code extension is enabled it keeps these shortcuts; Open Agent takes them over as soon as Claude Code is disabled (no reload needed). Until then, use the Open Agent icon or the Open Agent: commands.

Everything above is sent to the model server you configure, as it would be to Anthropic with Claude Code.

Features

  • Tools: read, edit (exact string replacement), write, glob, grep (ripgrep, respects .gitignore), bash, web fetch, todo list, skills, VS Code diagnostics.
  • Permission modes: ask before edits (default), edit automatically, auto, plan (edits refused), bypass. In auto mode the agent edits the workspace freely, and a review model (openAgent.autoModeModel, the chat model by default) reads your requests and each command: routine ones run, risky or unrequested ones (pushes, deletions outside the workspace, uploads, PRs) come to you with the reason. It only sees your messages and the action, never tool output. Edits open a side-by-side diff with accept / reject buttons; shell commands and web fetches ask unless an allow rule matches. Typing while an approval is pending denies it and tells the agent what to do instead.
  • Streaming answers with markdown, collapsible reasoning ("Thinking"), tool rows with output and inline diffs, a task list, context usage, and a spinner while the agent works.
  • @path and @path#L10-20 attach files (with completion), the current file or selection is attached while its chip is on, messages typed while the agent works are queued.
  • /clear, /compact (also automatic at 80% of the context window), /resume, /model, /mode, /init, /help, /<skill>.
  • Conversations are saved per workspace and can be resumed.
  • Sidebar: Usage shows the Hugging Face account, Inference Providers spend and requests this billing period, and the model. Sessions can be grouped (drag and drop, or right-click), renamed and archived, and the search button finds conversations by what was said in them, Claude Code sessions included, with the matching snippet.

Not implemented yet: MCP servers, images, subagents, checkpoints / rewind.

Settings

Setting Default
openAgent.baseUrl https://router.huggingface.co/v1 OpenAI-compatible base URL
openAgent.model Model id, set from the model menu
openAgent.extraBody {} Merged into every request, e.g. {"temperature": 0.6}
openAgent.initialPermissionMode default Mode new conversations start in

Development

npm install
npm run compile
node test/ui.mjs                                  # webview UI in jsdom
OA_BASE_URL=http://localhost:8000/v1 OA_RG=$(which rg) OA_PROJECT=/path/to/repo node test/run.mjs   # agent against a real server

test/run.mjs drives the agent loop against a real model: fixing a bug with approvals and diffs, follow-up turns, denials, plan mode, stopping mid-stream, compaction, and resuming a Claude Code session from OA_PROJECT.

The agent core (src/agent.ts, tools.ts, llm.ts, permissions.ts, context.ts, sessions.ts) does not depend on VS Code. src/extension.ts and src/chat.ts connect it to VS Code, and media/chat.js is the chat UI.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support