{
  "markdown": "# MoYuCode（摸鱼Coding）\n\n<div align=\"center\">\n\n**Manage Codex and Claude Code with one click - The open-source version of ZCode**\n\n[![CI](https://github.com/AIDotNet/MoYuCode/workflows/CI/badge.svg)](https://github.com/AIDotNet/MoYuCode/actions)\n[![Release](https://img.shields.io/github/v/release/AIDotNet/MoYuCode)](https://github.com/AIDotNet/MoYuCode/releases)\n[![License](https://img.shields.io/github/license/AIDotNet/MoYuCode)](LICENSE)\n\n[English](README.md) | [简体中文](README.zh-CN.md)\n\n</div>\n\n## Introduction\n\nMoYuCode（摸鱼Coding） is an open-source tool designed to help users conveniently operate [Codex](https://github.com/openai/codex) and [Claude Code](https://claude.ai/code) through a web interface. It supports local deployment and can be accessed externally through intranet mapping, making it convenient for users to use remotely via mobile devices and other platforms. Part of the design experience is inspired by [ZCode](https://zcode.dev/).\n\n## Features\n\n- **Web Interface**: Modern and responsive web UI built with React + TypeScript + Tailwind CSS\n- **AI Integration**: Seamless integration with OpenAI Codex and Claude Code\n- **Session Management**: Visualize and manage AI coding sessions with detailed history\n- **Project Workspace**: File explorer and code editor integration for seamless development workflow\n- **Token Usage Tracking**: Monitor and visualize token consumption across sessions\n- **Real-time Updates**: Server-Sent Events (SSE) for live AI response streaming\n- **Cross-platform**: Support for Windows, Linux, and macOS\n- **System Tray**: Windows desktop application with tray icon support\n\n## Screenshots\n\n### System Tray\nAfter launching MoYuCode.Win.exe, a system tray icon appears with the background service running automatically.\n\n### Project Selection\nAutomatically scans and loads local projects that have used Codex, allowing you to select and enter a workspace.\n\n### Session Management\n- Start new conversations or select from session history\n- Load previous sessions to restore full context\n- View session details including token usage and timeline\n\n### File Browser\nIntegrated file browser to view and edit code files directly while interacting with AI.\n\n## Download & Installation\n\n### Windows Desktop Application\n\n1. Visit the [GitHub Releases](https://github.com/AIDotNet/MoYuCode/releases) page\n2. Download the latest Windows archive (`MoYuCode-*-win-x64.zip`)\n3. Extract and run `MoYuCode.Win.exe`\n4. The program will display an icon in the system tray\n5. Open your browser and visit `http://localhost:9110/`\n\n### Linux\n\n1. Download the latest Linux package (`MoYuCode-*-linux-x64.tar.gz`) from [Releases](https://github.com/AIDotNet/MoYuCode/releases)\n2. Extract the archive:\n   ```bash\n   tar -xzf MoYuCode-*-linux-x64.tar.gz\n   cd MoYuCode-*-linux-x64\n   ```\n3. Run directly:\n   ```bash\n   ./run.sh\n   ```\n4. Or install as a systemd service:\n   ```bash\n   sudo ./install-service.sh\n   ```\n\n### macOS\n\n1. Download the latest macOS package (`MoYuCode-*-osx-x64.tar.gz`) from [Releases](https://github.com/AIDotNet/MoYuCode/releases)\n2. Extract the archive:\n   ```bash\n   tar -xzf MoYuCode-*-osx-x64.tar.gz\n   cd MoYuCode-*-osx-x64\n   ```\n3. Run directly:\n   ```bash\n   ./run.sh\n   ```\n4. Or install as a launch daemon:\n   ```bash\n   sudo ./install-service.sh\n   ```\n\n## Prerequisites\n\n- **.NET 10.0 Runtime** (for standalone executables, it's self-contained)\n- **Codex CLI** (required for Codex integration):\n  ```bash\n  npm install -g @openai/codex\n  ```\n\n## Usage\n\n### Accessing MoYuCode（摸鱼Coding）\n\nAfter starting the application, open your browser and navigate to:\n\n- HTTP: `http://localhost:9110/`\n- HTTPS: `https://localhost:9111/` (if configured)\n\n### Project Workflow\n\n1. **Select Project**: MoYuCode（摸鱼Coding） automatically scans for projects with Codex usage history\n2. **Enter Workspace**: Click on a project to enter its workspace\n3. **Start Conversation**: Begin a new chat or load a previous session\n4. **View Code**: Use the integrated file browser to view and edit files\n5. **Monitor Usage**: Track token usage and session statistics\n\n### Session Management\n\n- Click the session list button in the top-right corner\n- Select a historical session\n- Click \"Load Session\" to restore the complete context\n- View session details including token usage, timeline, and metadata\n\n## Development\n\n### Backend (C# / ASP.NET Core)\n\n```bash\n# Build\ndotnet build src/MoYuCode/MoYuCode.csproj\n\n# Run (HTTP)\ndotnet run --project src/MoYuCode/MoYuCode.csproj --launch-profile http\n\n# Run (HTTPS)\ndotnet run --project src/MoYuCode/MoYuCode.csproj --launch-profile https\n```\n\n### Frontend (React / Vite)\n\n```bash\ncd web\n\n# Install dependencies\nnpm ci\n\n# Development server\nnpm run dev\n\n# Build for production\nnpm run build\n\n# Lint code\nnpm run lint\n```\n\n### Build Full Application\n\nThe CI pipeline automatically builds both frontend and backend:\n\n```bash\n# Install frontend dependencies\nnpm ci\n\n# Build frontend\nnpm run build\n\n# Sync frontend to backend wwwroot\nrsync -a --delete web/dist/ src/MoYuCode/wwwroot/\n\n# Build backend\ndotnet build src/MoYuCode/MoYuCode.csproj -c Release\n```\n\n## Architecture\n\nMoYuCode（摸鱼Coding） follows a dual-stack architecture:\n\n### Backend\n- **Framework**: ASP.NET Core 10.0 Web API\n- **Communication**: JSON-RPC over stdio with Codex app-server\n- **Database**: SQLite with Entity Framework Core\n- **Protocols**: Agent-to-Agent (A2A) protocol for streaming AI interactions\n\n### Frontend\n- **Framework**: React 19 with TypeScript\n- **Build Tool**: Vite\n- **Styling**: Tailwind CSS v4\n- **State**: React Router + local component state\n- **UI Components**: Radix UI with custom animations\n\nSee [CLAUDE.md](CLAUDE.md) for detailed architecture documentation.\n\n## Contributing\n\nContributions are welcome! Please feel free to submit issues or pull requests.\n\n1. Fork the repository\n2. Create your feature branch\n3. Commit your changes\n4. Push to the branch\n5. Create a Pull Request\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Community\n\n- GitHub: [https://github.com/AIDotNet/MoYuCode](https://github.com/AIDotNet/MoYuCode)\n- Issues: [https://github.com/AIDotNet/MoYuCode/issues](https://github.com/AIDotNet/MoYuCode/issues)\n- Discussions: [https://github.com/AIDotNet/MoYuCode/discussions](https://github.com/AIDotNet/MoYuCode/discussions)\n\n## Acknowledgments\n\n- Inspired by [ZCode](https://zcode.dev/)\n- Built with [OpenAI Codex](https://github.com/openai/codex) and [Anthropic Claude Code](https://claude.ai/code)\n\nCommunity WeChat：wk28u9123456789\n",
  "bytes": 6591,
  "sha": "c66943d2e67613270af640948c6498fbf6724d04a358189bc56d682bd4c3b573",
  "repo_slug": "aidotnet/moyucode",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/skl_aidotnet_moyucode_bilibili_analyzer_2a70d390/readme"
}