# If Claude Code is expensive or hard to access for you, try OpenCode

> Source: <https://dev.to/joodi/if-claude-code-is-expensive-or-hard-to-access-for-you-try-opencode-5hfj>
> Published: 2026-07-30 09:56:02+00:00

If **Claude Code** is expensive or hard to access for you, try **OpenCode**.

It’s an open-source AI coding agent that works in the terminal, desktop, and as a VS Code extension.

**Free models available:**

These free models work well for most daily coding tasks. Note: They have daily usage limits (they reset every day).

How to install (Windows):

First, make sure Node.js is installed on your system.

Then run:

```
npm install -g opencode-ai
```

After installation, run:

```
opencode
```

You can also install the **VS Code extension** for a smoother experience.

OpenCode lets you use free models or connect any API key you want. It’s flexible, open-source, and a solid alternative to Claude Code.

I tested it myself. Setup is easy and the free models are usable for real work.

Link: [https://opencode.ai/](https://opencode.ai/)
