Skip to content
المشاريع

حول

A native (really fast!!) cross-platform client for OpenCode. Codewalk V2 is stable.

الذكاء الاصطناعي وتعلّم الآلة

كيف تُقاس هذه الأرقام

النمو المقاس للنجوم

خلال 24 ساعة
٠
خلال 7 أيام
+١
خلال 15 يومًا
+١
خلال شهر
٠

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

CodeWalk

CodeWalk desktop demo

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

CodeWalk Logo

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 start as clean single lines and collapse neatly once the assistant replies, with tokens-per-second stats and floating message actions (copy, share as themed PNG, read aloud, forward, undo, rewind, and fork).
  • 🤖 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, native Mermaid diagrams (28 types + fullscreen zoom), LaTeX math, inline and fullscreen lightbox Markdown images (project-local and external), clickable project file links, and basic HTML formatting.
  • 📁 Project files & micro editor — browse a conversation's project tree, jump by filename with Quick Open (Ctrl/⌘+P), tap file paths in answers to open at the exact line, and edit/save UTF-8 text files (up to 64 KB) in a multi-tab micro editor with optional autosave (create/rename/delete & content search: v2 soon).
  • 📊 Context usage & provider quotas — monitor context window usage and remaining quota for connected ChatGPT, GitHub Copilot, OpenRouter, DeepSeek, Claude, OpenCode Go, and OpenCode Zen accounts (auto-enabled per detected server login; ChatGPT, Claude, and OpenCode Zen are unavailable in the browser).
  • 📎 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, fork & compact — step back or rewind/edit earlier turns, fork conversations from any message, and compact long sessions (visual diff view: v2 soon).

Platforms & Experience

  • 📱 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 & read aloud — built-in speech-to-text on Android and macOS, plus read-aloud TTS via Microsoft Edge voices (no key needed), OpenAI-compatible, ElevenLabs, or NVIDIA NIM (Linux/Windows voice input: 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)

  • 🖥 Embedded terminal — resize or maximize the OpenCode project shell, use extra keys on mobile, or type ! in an empty conversation composer to run a single shell command.
  • 🏷 Skills & @ mentions (v2 soon) — reference project files, directories, agents, and skills directly in the composer.
  • 📤 Session export (v2 soon) — export sessions to Markdown or JSON.
  • 💬 Canned answers (v2 soon) — reusable global or per-project quick replies.
  • 🔔 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.

Get it on Obtainium

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

  1. Launch CodeWalk and open Settings → Servers, then tap Add server (also offered on first launch).
  2. 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.
  3. 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:

  1. 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.

  2. 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://.
  3. 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, an app to chat with agents. Besides standard Markdown (tables, language-tagged code fences), you may use:

- **Mermaid** in ```mermaid blocks: CodeWalk renders 28 modern diagram types, so pick the best fit, not just flowcharts. Prefer compact top-to-bottom layouts (`flowchart TD`; `direction TB` where the type supports it) to avoid horizontal scrolling; go left-to-right only when clearly more readable.
- **LaTeX**: `$inline$` and `$$display$$`.
- **Images**: `![alt](path)` or `![alt](https://...)` alone on its own line renders inline; inside a sentence it becomes a tappable chip. PNG, JPEG, GIF or WebP up to 8 MiB; project-relative paths work; no `data:` URIs or SVG.
- **File links**: write project paths as plain text, not in backticks, optionally with `:line` or `:line:col` (e.g. src/app.ts:42), to open them at that line. Prefix root files with `./` (e.g. ./README.md); bare names aren't detected.
- **Copy**: I copy single-backtick `code` with one tap; use it for anything I may want to copy (commands, code, hashes, IDs, single words, passwords).
- **HTML**: only `<b>`, `<i>`, `<u>`, `<br>`, `<sub>`, `<sup>`, `<progress>`; no other HTML, CSS or scripts; no `<u>`/`<sub>`/`<sup>` inside Markdown links.
  - `<progress value="25" max="100"></progress>` (`max` defaults to 1; omit `value` for indeterminate), only for real, measured progress.

Track multi-step work with your own agent's to-do tool, never another's, so CodeWalk shows it in Tasks: OpenCode `todowrite` · Codex CLI `update_plan` · Claude Code `TaskCreate`/`TaskUpdate` (`TaskList`/`TaskGet` to read) · Antigravity `update_steps`. Don't create a to-do file just for CodeWalk.

These rules only add display options; if another instruction conflicts, the other one wins.

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

Community

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:

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…