CodeWalk

https://github.com/user-attachments/assets/032f64e2-e8ee-4024-b49a-ca95a774653f

A fast, native cross-platform client for OpenCode servers — built for mobile and desktop.
CodeWalk 2.0 connects directly to OpenCode 2 servers on Android, Linux, Windows, macOS (Apple Silicon), and in the browser at codewalk.verseles.com. Using OpenCode 1? You can stay on CodeWalk 1 via CODEWALK_CHANNEL=v1.
Features
Chat & Workspace
- 💬 Realtime AI chat — streaming responses, quick history loading, and persistent message drafts.
- 🧩 Compact activity timeline — tool calls, shell runs, and reasoning stay on clean single lines and collapse neatly once the assistant replies, while intermediate replies stay visible.
- 🤖 Subagents & live shells capsule — track active and completed subagents and shell commands from one floating pill, inspect live output, or stop running tasks.
- 🗂 Project sidebar & session tabs — conversations grouped by project with automatic project icons and browser-style tabs on desktop (per-project tab colors: v2 soon).
- 🧠 Models, agents & permissions — switch providers, models, variants, and agents, save favorites, answer permission and question prompts, or toggle auto-approval per session.
- ✨ Rich replies — Markdown, syntax-highlighted code blocks, inline Mermaid diagrams, LaTeX math, and basic HTML formatting.
- 📎 Attachments — attach images, files/PDFs, audio, and geographic location from the composer
+ button, with timeline image lightbox previews, file cards, inline audio player, and clickable map cards (drag-and-drop & clipboard paste: v2 soon).
- ↩️ Undo, redo & compact — step back to earlier turns and compact long sessions (visual diff & fork views: v2 soon).
- 📱 Mobile & desktop native — Material 3 across Android, Linux, Windows, and macOS (Apple Silicon) with customizable themes, palettes, and desktop keyboard shortcuts (iOS: v2 soon).
- 🌍 Web app — codewalk.verseles.com runs CodeWalk 2 and talks to your server straight from the browser, with saved passwords kept encrypted in that browser; the server must allow the site (see Connect from the browser).
- 🖧 Multi-server profiles & QR pairing — switch between multiple OpenCode 2 servers, check connection status, and pair in seconds via QR code or pairing link (one-click local OpenCode install/launch: v2 soon).
- 🌐 14 languages — English, Português (Brasil), Español, Deutsch, Français, Italiano, Русский, 中文, 日本語, 한국어, हिन्दी, বাংলা, العربية, and اردو, with right-to-left layout support.
- 🎙 Voice dictation — built-in speech-to-text on Android and macOS (Linux/Windows voice input & read-aloud TTS: v2 soon).
- 🔄 Seamless updates — automatic update checks and verified in-app installs on Android and managed Linux installs (Windows and macOS update via the one-command scripts below).
Coming from v1 (v2 soon)
- 📁 Project files — browse a conversation’s project files read-only, find them by name with Quick Open (
Ctrl/⌘+P), read them with syntax highlighting, and tap a file an answer names to open it (editing, create/rename/delete and content search: v2 soon).
- 🖥 Embedded terminal (v2 soon) — run commands directly on your OpenCode host.
- 🏷 Skills &
@ mentions (v2 soon) — reference project files, directories, agents, and skills directly in the composer.
- 📤 Share, export & forward (v2 soon) — share messages as themed images, export sessions to Markdown/JSON, or forward messages to other sessions.
- 💬 Canned answers (v2 soon) — reusable global or per-project quick replies.
- 📊 Context usage & provider quotas — monitor context window usage and, opt-in per server, the remaining quota of the ChatGPT, GitHub Copilot, OpenRouter, DeepSeek and Claude logins stored on your OpenCode server, read from your device (ChatGPT and Claude are unavailable in the browser).
- 🔔 Notifications & sounds (v2 soon) — alerts when prompts finish or need your approval.
- 🔐 Cloudflare Access & Tailscale (v2 soon) — built-in support for private remote servers.
- 📶 Data saver (v2 soon) — reduce background sync on cellular connections.
Install
Linux & macOS (Apple Silicon)
curl -fsSL install.cat/verseles/codewalk | sh
Windows (PowerShell)
irm install.cat/verseles/codewalk | iex
Android
Open install.cat/verseles/codewalk in your Android browser to download the signed APK, or grab any build from the Releases page.
Run the same install command again any time to update. Published desktop builds cover Linux (x64, arm64), Windows (x64; Windows ARM64 runs x64 under emulation), and macOS Apple Silicon (arm64). Unsigned Windows and ad-hoc signed macOS builds may show a SmartScreen or Gatekeeper prompt on first launch (install.sh clears macOS quarantine automatically).
Channels, v1 → v2 migration & uninstall
New installations default to stable (CodeWalk 2). Existing CodeWalk 1 installations are protected from accidental upgrades and require explicit consent (CODEWALK_MIGRATION=accept-v2).
Linux & macOS:
# Stay on CodeWalk 1 (remembered for future updates)
curl -fsSL install.cat/verseles/codewalk | CODEWALK_CHANNEL=v1 sh
# Migrate an existing CodeWalk 1 installation to CodeWalk 2
curl -fsSL install.cat/verseles/codewalk | CODEWALK_MIGRATION=accept-v2 sh
# Install one exact release
curl -fsSL install.cat/verseles/codewalk | CODEWALK_VERSION=v2.0.0 sh
# Uninstall (preserves user data on Linux)
curl -fsSL https://raw.githubusercontent.com/verseles/codewalk/main/uninstall.sh | sh
Windows (PowerShell):
# Stay on CodeWalk 1
$env:CODEWALK_CHANNEL='v1'; irm install.cat/verseles/codewalk | iex
# Migrate an existing CodeWalk 1 installation to CodeWalk 2
$env:CODEWALK_MIGRATION='accept-v2'; irm install.cat/verseles/codewalk | iex
# Uninstall
irm https://raw.githubusercontent.com/verseles/codewalk/main/uninstall.ps1 | iex
On Linux, binaries install to ${XDG_DATA_HOME:-$HOME/.local/share}/codewalk-app, keeping application files separate from user data (com.verseles.codewalk and legacy codewalk).
Connect to Your Server
- Launch CodeWalk and open Settings → Servers, then tap Add server (also offered on first launch).
- Keep the harness on OpenCode, then scan your server’s QR code or paste a pairing link, or switch to Manual and enter your server URL (default
http://127.0.0.1:4096) and password.
- Save: CodeWalk checks the server first. If the check fails, it shows why and offers Save anyway, which keeps the server as Offline until it answers.
Connect from the browser
The web app connects from your browser to your server, so the server has to allow the site and the browser has to be able to reach it:
-
Allow the site on your server, then start the service again (setting it stops the service):
opencode service set cors https://codewalk.verseles.com
opencode service start
The value replaces the whole list; separate several origins with commas. With opencode serve, pass --cors https://codewalk.verseles.com instead.
-
Use an address the browser accepts from a secure page:
- an
https:// address works anywhere (for example behind a TLS proxy or a tunnel);
- plain
http:// works on the same computer (http://localhost:4096, http://127.0.0.1:4096);
- plain
http:// on a private address (192.168.x.x, 10.x.x.x, 172.16–31.x.x, Tailscale’s 100.64–127.x.x) works only in Chromium-based browsers, which ask for permission to access your local network; other browsers need https://.
-
Add the server as above. If the browser cannot reach it, CodeWalk shows the CORS command to copy; the browser does not say whether the address, TLS, or CORS was the cause.
Basic HTML in Assistant Replies
Supported tags and examples
Assistant replies can mix these case-insensitive HTML tags with Markdown. Formatting and progress bars follow the app theme on mobile and desktop.
| Tag |
Effect |
Example |
<b> |
Bold |
<b>Important</b> |
<i> |
Italic |
<i>Note</i> |
<u> |
Underline |
<u>Highlighted</u> |
<br> |
Line break; <br/> and <br /> also work |
First line<br>Second line |
<sub> |
Subscript |
H<sub>2</sub>O |
<sup> |
Superscript |
x<sup>2</sup> |
<progress> |
Native progress bar |
<progress value="25" max="100">Loading</progress> |
Tags inside code blocks stay literal, and copying a message preserves its original markup. Support is limited to the tags above; arbitrary HTML and CSS are not rendered.
Tell Your Agent What CodeWalk Shows
A block to paste into your AGENTS.md
CodeWalk renders more than plain Markdown. Paste this block into your AGENTS.md (project or global) so your agent uses it:
## Output for CodeWalk
I read your replies in CodeWalk. Besides Markdown, you may use:
- Mermaid diagrams in ```mermaid fenced blocks, with a full-screen view to drag and zoom.
- LaTeX math: $inline$ and $$display$$ blocks.
- Markdown images (`` or ``): an image alone on its own line loads directly in the timeline and expands on tap; inline images stay compact chips until tapped (PNG, JPEG, GIF, WebP up to 8 MiB; project paths are read through the server; no `data:` URIs or SVGs).
- These HTML tags, and no others: <b>, <i>, <u>, <br>, <sub>, <sup> and <progress>.
- <progress value="25" max="100"></progress> shows a bar (max defaults to 1);
leave out value for an indeterminate one. Show only real, measured progress.
- Single backticks: I copy `inline code` with one tap, so wrap anything I may
want to copy quickly in them: commands, code, paths, hashes, IDs, single
words, even passwords.
No other HTML, no inline CSS, no scripts.
Track multi-step work with the to-do tool of the agent you run in, so CodeWalk
shows it in its Tasks widget:
- OpenCode: todowrite
- Codex CLI: update_plan
- Claude Code: TaskCreate / TaskUpdate (TaskList / TaskGet to read)
- Antigravity: update_steps
Never call another agent's tool, and never keep a to-do list in a file.
Development
Building, testing & releasing from source
Prerequisites
- Flutter SDK (
3.50.1, Dart 3.14.0)
- An OpenCode 2 server instance
- Platform toolchain:
- Linux:
clang, cmake, ninja, pkg-config, libgtk-3-dev, libsecret-1-dev
- Windows / macOS: native host toolchain
Run & Build
flutter pub get
flutter run -d linux --target lib/main_v2.dart
flutter build linux --release --target lib/main_v2.dart
Make Targets
make check # deps + analyze + coverage/v2/release tool tests + full test suite
make check-fast # fast subset of checks
make test-release-tools # release plan, artifact verifier & publication guards
make v2-native-check # workspace packages, architecture guard & contract tests
make v2-web-check # browser transport, reach rules & encrypted credentials in Chrome
make coverage # full tests with 85% coverage floor
make release V=stable # cut a stable v2 release on main (DRY_RUN=1 prints plan only)
On main, the Release workflow builds and verifies five targets from lib/main_v2.dart (Android arm64, Linux x64/ARM64, Windows x64, macOS arm64) and publishes the release via a create-only release script. Manual dispatch from main with dry_run_version builds and verifies all five targets without publishing. CodeWalk 1 releases stay on the v1 branch.
Architecture & Tech Stack
CodeWalk 2 uses a modular Dart workspace (packages/codewalk_core, packages/codewalk_net, packages/harness_opencode, packages/harness_host) separating canonical domain models and harness adapters from the Flutter UI (lib/).
- Framework: Flutter & Dart (Material Design 3)
- Routing & State: GoRouter, Provider, GetIt
- Storage: SharedPreferences & FlutterSecureStorage
Chat with users, get release news, and send feedback: Telegram — t.me/codewalkapp. Release highlights also appear in-app under Settings → Version and updates, below the update controls.
License
This project is dual-licensed:
Origin and Acknowledgment
CodeWalk is a fork of OpenMode, originally created by easychen under the MIT license. See NOTICE for full attribution details.
评论