How to Build a Local Free Claude Code Alternative Powered by gpt-oss-20b

Set up a free AI coding environment with GPT-OSS, Opencode, and Vibe Kanban. Build a React portfolio and manage tasks locally with this open-source stack.

Ashley Goolam

Ashley Goolam

15 August 2025

How to Build a Local Free Claude Code Alternative Powered by gpt-oss-20b

Hey, coders! Want to supercharge your development workflow with a free, local AI coding setup? You’re in the right place! Today, we’re diving into how to create a powerful, open-source AI coding environment using GPT-OSS, Opencode, and Vibe Kanban. These tools let you code smarter, automate tasks, and manage projects—all without breaking the bank. In this guide, we’ll walk you through setting up Opencode with the GPT-OSS model to build a portfolio website, then use Vibe Kanban to manage and enhance it. By the end, you’ll have a local, AI-driven coding powerhouse. Let’s get coding with GPT-OSS, Opencode, Vibe Kanban!

💡
Want a great API Testing tool that generates beautiful API Documentation?

Want an integrated, All-in-One platform for your Developer Team to work together with maximum productivity?

Apidog delivers all your demands, and replaces Postman at a much more affordable price!
button

What Are GPT-OSS, Opencode, and Vibe Kanban?

Before we jump in, let’s meet the stars of our AI coding trio:

Together, these tools create a free, local environment where GPT-OSS powers the AI, Opencode handles coding tasks, and Vibe Kanban organizes your projects. Let’s set it up!

gpt-oss model

Step 1: Install Opencode

First, we need to install Opencode, the backbone of our AI coding environment. It’s super easy on macOS/Linux, with a manual option for Windows.

For macOS/Linux

Run one of these commands in your terminal:

curl -fsSL https://opencode.ai/install | bash
npm i -g opencode-ai@latest  # or bun/pnpm/yarn
brew install sst/tap/opencode  # macOS and Linux
paru -S opencode-bin  # Arch Linux

For Windows

  1. Visit github.com/sst/opencode/releases (e.g., v0.3.112 as of August 2025).
  2. Download the latest opencode.exe binary.
  3. Save it to a directory (e.g., C:\opencode).

Test the Installation

Verify Opencode is working:

Pro Tip: For Windows, add the binary folder to your PATH for easier access.

opencode agent

Step 2: Set Up Your Opencode Project

Let’s create a new project folder to build a portfolio website using Opencode and GPT-OSS. We’ll configure it with custom settings.

Create Project Folder:

mkdir opencode-vibekanban-project
cd opencode-vibekanban-project

Add AGENTS.md:
Create a file named AGENTS.md with:

# Tooling rules for Opencode
- Use Opencode tools only: read, write, edit, list, glob, grep, webfetch, bash, task, todowrite, todoread.
- Do NOT call non-existent tools like Repo_browser.*.
- Prefer `edit` for modifying existing files; use `read` to inspect before editing.

This defines rules for Opencode’s AI agent, ensuring it uses the right tools.

Add opencode.json:
Create opencode.json to configure GPT-OSS (20B model):

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "ollama": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Ollama (local)",
      "options": {
        "baseURL": "http://localhost:11434/v1"
      },
      "models": {
        "gpt-oss:20b": { "name": "gpt-oss 20B (local)" }
      }
    }
  },
  "model": "ollama/gpt-oss:20b",
  "agent": {
    "build": {
      "description": "Default coding mode with only Opencode tools.",
      "tools": {
        "read": true,
        "write": true,
        "edit": true,
        "bash": true,
        "grep": true,
        "glob": true,
        "list": true,
        "webfetch": true,
        "patch": true,
        "todoread": true,
        "todowrite": true
      },
      "prompt": "{file:./AGENTS.md}"
    }
  },
  "instructions": ["AGENTS.md"]
}

Want to use the more powerful GPT-OSS 120B? Replace the provider and model sections with:

"provider": {
  "ollama": {
    "npm": "@ai-sdk/openai-compatible",
    "name": "Ollama (local)",
    "options": {
      "baseURL": "http://localhost:11434/v1"
    },
    "models": {
      "gpt-oss:120b": { "name": "gpt-oss 120B (local)" }
    }
  }
},
"model": "ollama/gpt-oss:120b"

Note: Save AGENTS.md and opencode.json in opencode-vibekanban-project. These files tell Opencode to use GPT-OSS and follow specific tooling rules.

Step 3: Install and Run GPT-OSS with Ollama

GPT-OSS runs locally via Ollama, a lightweight tool for managing LLMs. You’ll need a decent machine (16GB+ RAM for 20B, 64GB+ for 120B).

  1. Install Ollama:

2. Pull GPT-OSS Model:

ollama pull gpt-oss:20b
ollama pull gpt-oss:120b
gpt-oss model on ollama

3. Run the Model:

ollama run gpt-oss:20b

or

ollama run gpt-oss:120b

Pro Tip: Ensure Ollama is running before starting Opencode, or you’ll get connection errors.

Step 4: Run Opencode for Your Project

Now, let’s fire up Opencode in your project folder:

  1. Navigate to Project:
cd opencode-vibekanban-project

2. Run Opencode:

opencode .
<path-to-opencode>/opencode.exe .

3. Verify Setup:

configure opencode with gpt-oss model

Step 5: Create a Portfolio Website with Opencode

Let’s use Opencode and GPT-OSS to build a simple portfolio landing page for a developer named John Doe, using React with Vite.

Enter the Prompt:

Create a simple portfolio landing page for a developer called John Doe in React with Vite.

Run the Website:

npm install
npm run dev
simple portfolio website

Push to GitHub:

git init
git add .
git commit -m "Initial portfolio website"
git remote add origin https://github.com/your-username/john-doe-portfolio.git
git push -u origin main

Pro Tip: Use Opencode’s webfetch tool to pull inspiration from existing portfolio sites if needed.

Step 6: Set Up Vibe Kanban for Project Management

Now, let’s integrate Vibe Kanban to manage and enhance the portfolio project with AI agents.

Install Vibe Kanban:

npx vibe-kanban

Configure Vibe Kanban:

link vibe kanban with github

Create a New Project:

create a new project

Step 7: Add Tasks with Vibe Kanban

Let’s use Vibe Kanban to enhance the portfolio by adding a new feature, like a contact form.

Create a Task:

create a task

Select Agent:

select opencode as your agent

Review and Approve:

git add .
git commit -m "Added contact form"
git push

Pro Tip: Use Vibe Kanban to queue multiple tasks (e.g., “Add dark mode,” “Optimize images”) and let Opencode handle them sequentially.

Troubleshooting Common Issues

Why This Stack Rocks

The GPT-OSS, Opencode, Vibe Kanban combo is a developer’s dream:

Users love this setup: “Opencode with GPT-OSS built my site in minutes, and Vibe Kanban kept it organized!” Try it and see why.

Conclusion

You’ve just built a free, local AI coding environment with GPT-OSS, Opencode, and Vibe Kanban! From spinning up a portfolio site to managing tasks with AI agents, you’re ready to code smarter. Experiment with new features, contribute to the repos, and share your projects in the comments. Let’s keep the AI coding revolution going!

💡
Want a great API Testing tool that generates beautiful API Documentation?

Want an integrated, All-in-One platform for your Developer Team to work together with maximum productivity?

Apidog delivers all your demands, and replaces Postman at a much more affordable price!
button

Explore more

Benefits of API Management: Why Every Business Needs It

Benefits of API Management: Why Every Business Needs It

Discover the benefits of API management. See how Apidog improves and streamlines your entire API lifecycle for teams of any size.

15 August 2025

10 Types of API Diagram Every Developer Should Know

10 Types of API Diagram Every Developer Should Know

Discover the top 10 API diagrams every developer should know in 2025 and see how Apidog can help you create them faster and keep them up to date.

15 August 2025

Top 10 API SaaS Platforms to Watch in 2025

Top 10 API SaaS Platforms to Watch in 2025

APIs power the digital economy, and API SaaS platforms make them easier to design, test, and manage. Explore the list of the top ten API SAAS platforms that are built for API design, testing, documentation, and collaboration.

15 August 2025

Practice API Design-first in Apidog

Discover an easier way to build and use APIs