cd /news/ai-tools/show-hn-opencodex-a-free-open-source… Β· home β€Ί topics β€Ί ai-tools β€Ί article
[ARTICLE Β· art-91204] src=github.com β†— pub= topic=ai-tools verified=true sentiment=↑ positive

Show HN: Opencodex, a free open-source coding agent for VSCode

Opencodex, a free open-source coding agent for Visual Studio Code, launched on the VS Code Marketplace, enabling users to run a Codex-style agent loop without an account or API key, with support for local models via Ollama and multiple cloud providers. The agent can inspect repositories, plan work, edit files, run commands, and show every step, with safety features like configurable approvals and Git restore points.

read7 min views1 publishedAug 10, 2026
Show HN: Opencodex, a free open-source coding agent for VSCode
Image: source

A free, open-source coding agent inside VS Code.

Start without an account or API key, connect another free provider, or run models locally with Ollama.

** Install from the VS Code Marketplace** Β·

Report a bug or request a feature

Opencodex brings a Codex-style agent loop to the editor you already use. Open a folder, choose a free model, and describe the outcome you want. The agent can inspect the repository, plan the work, edit files, run commands, and show every step as it happens.

Why OpencodexQuick startWhat it can doModel providersSafety and approvalsMCP, subagents, terminals, and memorySkills marketplaceSettingsCommandsDevelopment

Free to start: OpenCode works anonymously out of the box. No Opencodex account or API key is required.Bring your own provider: Switch between OpenCode, OpenRouter, Groq, Gemini, Mistral, and Ollama.Local models: Use compatible models installed in Ollama without sending prompts to a cloud model provider.Visible agent work: Follow plans, reasoning, tool activity, retries, and streamed answers from the sidebar.Workspace-aware: Each folder gets its own project and conversation history.Built for recovery: Editor undo and Git restore points make agent changes easier to inspect and roll back.Extensible with skills: Discover, preview, and installSKILL.md

packages from SkillsMP or GitHub.Your choice of control: Confirm every action, auto-approve edits, or enable Open access.

Install Opencodex from the VS Code Marketplace.- Open a folder in VS Code.

  • Click the O button in the editor title bar, or runOpencodex: Open Chat from the Command Palette. - Complete the one-time setup. The default OpenCode provider needs no account or API key.
  • Pick a free model below the composer and describe what you want to build.

That is enough to begin. API keys, Ollama, SkillsMP, and SearXNG are optional.

  • Read and search the active workspace

  • Create, edit, and delete files within the workspace boundary

  • Review proposed file diffs before they are applied in Ask mode

  • Run commands with configurable approvals

  • Keep named shell sessions alive for dev servers and interactive follow-up commands

  • Delegate bounded exploration, review, and implementation work to subagents

  • Use tools exposed by configured MCP servers

  • Present a pinned plan before beginning multi-step work

  • Stream answers while showing collapsible tool and reasoning details

  • Schedule one follow-up prompt and steer an active run

  • Retry interrupted model streams instead of silently claiming completion

  • Maintain separate chat history for every VS Code folder

  • Switch, archive, restore, and permanently delete conversations

  • Copy messages and review timestamps

  • Restore Git-tracked files to the state captured after an agent response

  • Receive native completion, approval, and failure notifications

  • Review token usage by model and provider

  • Keep durable project decisions in .opencodex/memory.md

Every provider uses the same agent experience. Keys are stored separately for each provider in VS Code SecretStorage and are never written to settings.json

.

Provider API key Models offered
OpenCode (default)
No Compatible models ending in -free , loaded from the live catalog
OpenRouter
Yes Compatible models ending in :free , loaded from the live catalog
Groq
Yes Compatible models in Groq's free tier
Google Gemini
Yes Compatible Gemini and Gemma free-tier models
Mistral
Yes Known free-tier models, with support for extra model IDs in Settings
Ollama (local)
No Compatible models installed on your machine

Cloud free tiers have their own rate limits and availability can change without an Opencodex release. Reopen Settings to refresh the model list. Opencodex filters out non-chat and non-tool-capable models where provider metadata allows it.

Opencodex constrains its built-in file tools to the active workspace. Common credential files such as .env

are blocked, and provider API keys are kept in VS Code's encrypted SecretStorage.

Mode File edits Commands Destructive commands
Ask
Confirm Confirm Confirm
Auto edits
Automatic Safe commands automatic Confirm
Open access
Automatic Automatic Automatic

In Ask mode, Opencodex opens a VS Code diff containing the proposed content before asking you to apply or reject it. Applied edits use VS Code workspace edits and participate in editor undo. Open access is intentionally powerful; use it only in workspaces where you are comfortable allowing unattended commands.

Configure MCP servers in Settings as a JSON object. Both local stdio servers and remote HTTP/SSE servers are supported:

{
  "local-tools": {
    "command": "npx",
    "args": ["-y", "some-mcp-server"]
  },
  "remote-tools": {
    "url": "https://example.com/mcp",
    "headers": { "Authorization": "Bearer ${env:MCP_TOKEN}" }
  }
}

Each MCP tool is namespaced by server and follows the active approval mode. Connections are opened for the agent run and closed afterward.

The agent can delegate a bounded task to an explorer, reviewer, or worker subagent. Explorer and reviewer subagents are read-only; worker subagents can edit and verify through the same approval system as the parent.

Named persistent shell sessions remain alive across tool calls and conversations until they are explicitly stopped or the extension closes. Project memory is stored in .opencodex/memory.md

, loaded into future requests, and editable with Opencodex: Open Project Memory from the Command Palette.

Opencodex can extend itself with SKILL.md

packages from SkillsMP or a GitHub repository.

Discover: Search popular or recently updated skills from the shop button beside Settings.Preview: Read a skill's instructions and inspect its GitHub source before installation.Install: Add the selected skill to Opencodex's global extension storage after approval.Use anywhere: Installed skills are available across workspaces and added to the agent's instructions from the next request.

You can also ask directly: β€œFind me a skill for web scraping” or β€œInstall the planning skill from owner/repository.”

Open the gear button in the Opencodex sidebar or run Opencodex: Open Settings.

Setting Purpose
opencodex.provider
Active model provider
opencodex.model
Selected compatible free model
opencodex.maxSteps
Maximum tool-loop steps; 0 allows unlimited steps
opencodex.approvalMode
Ask, Auto edits, or Open access
opencodex.searxngUrl
Optional SearXNG instance used by the web-search tool
opencodex.mcpServers
JSON configuration for stdio, HTTP, or SSE MCP servers
opencodex.extraFreeModels
Additional comma-separated model IDs to show
opencodex.systemNotifications
Native task, approval, and failure notifications

Set a SearXNG base URL to enable the web_search

tool. The server must allow JSON output with format=json

.

  • Local VS Code: http://localhost:8888

  • Dev Containers or remote workspaces: use an address reachable from the extension host, such as the host LAN address or host.docker.internal

where supported

See the SearXNG installation documentation for setup options.

Command Description
Opencodex: Open Chat
Open Opencodex in the secondary sidebar
Opencodex: Focus Chat
Focus the current chat
Opencodex: Open Settings
Open provider and agent settings
Opencodex: Show Token Usage
Review recent input and output token usage
Opencodex: Open Project Memory
Open the active folder's durable memory file
Opencodex: Skill Marketplace
Browse, preview, and install skills
Opencodex: New Chat
Start a new conversation
Opencodex: Test System Notification
Verify native notifications on the current platform
  • VS Code 1.106.0 or newer - An internet connection for cloud providers
  • Optional: a free provider API key for OpenRouter, Groq, Gemini, or Mistral
  • Optional: Ollama for fully local models
  • Optional: SearXNG for web search
git clone https://github.com/matonhp5108/Opencodex.git
cd Opencodex
npm install
npm run check
npm run build

Open the folder in VS Code and press F5

to launch an Extension Development Host.

npm run package

The package command type-checks the project, builds the extension, and creates a .vsix

with vsce

.

  • Free-model catalogs and rate limits are controlled by each provider.
  • Mistral does not expose a free-model marker, so its built-in list is curated.
  • Web search requires a user-provided SearXNG instance.
  • Skills search and installation use SkillsMP and GitHub; unauthenticated GitHub API limits may apply.
  • Restore points cover Git-tracked files and are available only for newer responses that captured a Git state.
  • Persistent terminal sessions use piped shells rather than a full PTY, so full-screen terminal applications are not supported.
  • MCP authentication is configured through server headers or environment variables; interactive OAuth is not yet included.

Bug reports and feature requests are welcome in GitHub Issues. Include the Opencodex version, VS Code version, provider, and selected model when reporting model-specific problems.

Pull requests are welcome. Please run npm run check

and npm run build

before submitting changes.

You made it to the end of the README. Here is your reward:

  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—    β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—   β–ˆβ–ˆβ•—  β–ˆβ–ˆβ•— 
 β–ˆβ–ˆβ•”β•β•β•β–ˆβ–ˆβ•—  β–ˆβ–ˆβ•”β•β•β•β•β•   β•šβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β• 
 β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘         β•šβ–ˆβ–ˆβ–ˆβ•”β•  
 β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘         β–ˆβ–ˆβ•”β–ˆβ–ˆβ•—  
 β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•  β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—   β–ˆβ–ˆβ•”β• β–ˆβ–ˆβ•— 
  β•šβ•β•β•β•β•β•    β•šβ•β•β•β•β•β•   β•šβ•β•  β•šβ•β•

Opencodex - keep building.

── more in #ai-tools 4 stories Β· sorted by recency
── more on @opencodex 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain β€” perfect for shipping the agent you just read about.

$git push zahid main
β†’ Live at https://your-agent.zahid.host βœ“
Get free account β†’ Pricing
from €0/mo Β· no card required
LIVE [news/show-hn-opencodex-a-…] indexed:0 read:7min 2026-08-10 Β· β€”