Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
P

portal

> AI 编程
Open source

Mobile first batteries included web ui for sst/opencode. Git integration, in browser terminal, isolated workspaces.

777 stars0 likes1 views
WebsiteGitHub

About

Mobile first batteries included web ui for sst/opencode. Git integration, in browser terminal, isolated workspaces.

OpenCode Portal

Disclaimer: This is a personal project and is not related to https://github.com/sst/opencode or the SST team. This portal is a personal-built interface for interacting with OpenCode instances.

A web-based UI for OpenCode, the AI coding agent. This portal provides a browser interface to interact with OpenCode sessions, view messages, and chat with the AI assistant.

Quick Start

Using bunx (Recommended)

The easiest way to run OpenCode Portal is using bunx:

bash
# Navigate to your project directory
cd /path/to/your/project

# Run OpenCode Portal
bunx openportal

Note: OpenPortal works best when paired with Bun. Node.js may have some rough edges.

This will:

  • Start the OpenCode server (default port: 4000)
  • Start the web UI (default port: 3000)
  • Automatically find available ports if defaults are busy

Installation

You can also install globally:

bash
bun install -g openportal

# Then run in any project directory
openportal

CLI Commands

bash
openportal                    # Start OpenCode + Web UI
openportal run                # Start only OpenCode server (no Web UI)
openportal stop               # Stop running instances
openportal list               # List running instances
openportal clean              # Clean up stale entries

CLI Options

bash
openportal [command] [options]

Options:
  -h, --help              Show help message
  -d, --directory   Working directory (default: current directory)
  -p, --port        Web UI port (default: 3000, auto-finds if busy)
  --opencode-port   OpenCode server port (default: 4000, auto-finds if busy)
  --hostname        Hostname to bind (default: 0.0.0.0)
  --name            Instance name (default: directory name)

Prerequisites

OpenCode must be installed on your system. Install it using one of these methods:

bash
# Using bun
bun install -g opencode

# Using Homebrew (macOS)
brew install sst/tap/opencode

Overview

OpenCode Portal connects to a running OpenCode server and provides:

  • Session management (create, view, delete sessions)
  • Real-time chat interface with the AI assistant
  • File mention support (@filename to reference files)
  • Model selection
  • Dark/light theme support

Why This Project?

OpenCode comes with its own official web UI that you can access by running:

bash
opencode --port 4096

However, the official UI is currently under development and has some limitations:

  • Not mobile responsive
  • Limited mobile experience

This project was inspired by my personal need to access OpenCode from my mobile device when I don't have my laptop around. The goal is to provide a mobile-first, responsive interface for interacting with OpenCode instances remotely.

Use Case

This portal is designed for remote access to your OpenCode instance. Deploy the portal on a VPS alongside OpenCode, then use Tailscale (or similar VPN) to securely connect from your mobile device or any other machine.

Example setup:

[Your Phone] ---(Tailscale)---> [VPS running Portal + OpenCode]

Tech Stack

  • React Router - React framework
  • IntentUI - UI library
  • Tailwind CSS - Styling
  • Nitro - Server
  • OpenCode SDK - OpenCode API client

Contributing

Contributions are welcome! Here's how you can help:

Feedback & Feature Requests

Visit oc-portal.userjot.com to submit feedback and feature requests.

Reporting Issues

  • Bugs: Report bugs by opening an issue with a clear description and steps to reproduce

Development Setup

  1. Fork the repository
  2. Clone your fork:
    bash
    git clone https://github.com/YOUR_USERNAME/portal.git
    cd portal
  3. Install dependencies:
    bash
    bun install
  4. Run the development server:
    bash
    bun dev

Pull Request Process

  1. Create a feature branch from main
  2. Make your changes following the existing code style
  3. Test your changes thoroughly
  4. Update documentation if needed
  5. Submit a pull request with a clear description

Code Style

  • Use TypeScript for all new code
  • Follow the existing component patterns in apps/web/src/components/
  • Use Tailwind CSS for styling
  • Maintain consistent naming conventions
  • Add proper TypeScript types

Getting Help

  • Join our Discord community
  • Check existing issues before creating new ones
  • Join the discussion in existing issues
  • Be respectful and constructive in all interactions

License

MIT

Issues· 22 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScriptaiai-agentai-agentsopencode

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
CategoryAI 编程
PricingOpen source

> Related tools

G
GitHub Copilot
GitHub 官方 AI 编程助手,覆盖补全、Chat 与 Agent 模式。
C
Cursor
AI 原生代码编辑器,对话改代码、多文件 Agent 与规则体系是其核心。
S
skills
Skills for Real Engineers. Straight from my .agents directory.