项目 / hosenur/portal
hosenur/portal
行业候选
语言 TypeScript标签 aiai-agentai-agentsopencode数据更新 2026-11-20 06:49:16 · 仓库 2026-11-19
一段话介绍
面向 OpenCode 编程代理的 Web 界面(OpenCode Portal),用来在浏览器中管理会话、查看消息并与助手对话,定位为移动优先的远程访问入口。源文写明这是个人项目,与 SST / OpenCode 官方团队无关。使用前需先安装 OpenCode;在项目目录执行 `bunx openportal` 即可同时启动 OpenCode 服务(默认 4000 端口)和本界面(默认 3000 端口)。也可用 `bun install -g openportal` 全局安装。项目页见 [openportal.space](https://openportal.space)。
本站整理,非 GitHub 官方 description。
官方 description(GitHub API 原样)Mobile first batteries included web ui for sst/opencode. Git integration, in browser terminal, isolated workspaces.
官方快照(gh_history.db,2026-11-25):总榜 未进 Top50 · 日榜 未进 Top50 · 周榜未满 7 天基线(官方不生成) · 月榜暂无官方口径;下方四卡为站内趋势聚合(周卡按上榜次数,非官方 7 日增量窗)。
—
大模型应用工程化与评测
适配系统:AI 应用平台、模型评测平台 · 得分 1.2
提供模型接入、编排与效果评测能力,可作为行业 AI 应用的工程底座与质量闸门。
更多信息
以下三段按该项目自己的 GitHub README 章节摘录(可合理截断并标明);README 没有对应章节的留空,不编造。
我的用法
OpenCode Portal 建议用 bunx openportal 或全局安装后启动,会开 4000 端口的服务器和 3000 端口的网页界面,端口被占时自动换;与 Bun 搭配最佳,Node.js 下可能不够稳定。
特点或设计要点
项目提供 oc-portal.userjot.com 网站用于提交反馈和功能请求。
局限和适用边界
该项目依赖系统中预先安装 OpenCode,可通过 bun 全局安装或 macOS 上用 Homebrew(sst/tap)安装。
星标走势还差一天的数据,明天就能看到曲线
每天 10:30 记一次星标,连续两天后自动生成曲线
GitHub 项目主页介绍
来自 GitHub 仓库 README / 主页介绍正文,原样摘录,共 4,878 字节。
# OpenCode Portal

> **Disclaimer**: This is a **personal project** and is **not related** to [https://github.com/sst/opencode](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](https://opencode.ai), 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 <path> Working directory (default: current directory)
-p, --port <port> Web UI port (default: 3000, auto-finds if busy)
--opencode-port <port> OpenCode server port (default: 4000, auto-finds if busy)
--hostname <host> Hostname to bind (default: 0.0.0.0)
--name <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](https://tailscale.com) (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](https://reactrouter.com) - React framework
- [IntentUI](https://intentui.com/) - UI library
- [Tailwind CSS](https://tailwindcss.com) - Styling
- [Nitro](https://nitro.build) - Server
- [OpenCode SDK](https://www.npmjs.com/package/@opencode-ai/sdk) - OpenCode API client
## Contributing
Contributions are welcome! Here's how you can help:
### Feedback & Feature Requests
Visit [oc-portal.userjot.com](https://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](https://discord.gg/7UJ5KYfhNE)
- Check existing [issues](https://github.com/hosenur/portal/issues) before creating new ones
- Join the discussion in existing issues
- Be respectful and constructive in all interactions
## License
MIT