# Lfcode

> Local-first open-source AI coding workspace for desktop, terminal, sessions, skills, browser automation, and extensible workflows.

- **Type:** MCP server
- **Install:** `agentstack add mcp-lfyxhappy-lfcode`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [lfyxhappy](https://agentstack.voostack.com/s/lfyxhappy)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [lfyxhappy](https://github.com/lfyxhappy)
- **Source:** https://github.com/lfyxhappy/lfcode

## Install

```sh
agentstack add mcp-lfyxhappy-lfcode
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

本地优先的开源 AI 编程工作台
把对话、代码编辑、终端、浏览器、Skills 与自动化工作流带进同一个桌面环境。

  
  
  

  下载 ·
  快速开始 ·
  Issues

  English |
  简体中文 |
  中文 |
  繁體中文 |
  한국어 |
  Deutsch |
  Español |
  Français |
  Italiano |
  Dansk |
  日本語 |
  Polski |
  Русский |
  Bosanski |
  العربية |
  Norsk |
  Português (Brasil) |
  ไทย |
  Türkçe |
  Українська |
  বাংলা |
  Ελληνικά |
  Tiếng Việt

---

## 一个工作台，贯穿完整开发流程

- **会话**：组织持续的 AI 协作，查看状态、Diff 和历史，并在不同任务之间保持上下文清晰。
- **代码编辑与终端**：在同一工作区阅读和修改代码、运行命令，让讨论直接落到可验证的结果。
- **浏览器与自动化**：把页面操作、调试和验证接入代理工作流，覆盖从实现到真实界面检查的闭环。
- **Skills 与扩展**：通过本地 Skills、MCP、插件和 SDK 组合适合项目的工具链与自动化能力。

## 功能展示

以下为统一视觉占位，真实产品预览将随后补充。

  
    
      
      会话
    
    
      
      编辑器与终端
    
  
  
    
      
      浏览器自动化
    
    
      
      Skills 与扩展
    
  

## 快速开始

### Windows 桌面端

前往 [GitHub Releases](https://github.com/lfyxhappy/lfcode/releases/latest)，下载 `lfcode-win-x64.exe` 并按安装向导完成安装。

### 命令行

Lfcode 的正式主命令是：

```bash
lfcode
```

### 从源码运行

需要 [Bun](https://bun.sh/) 1.3.11。克隆仓库后在根目录运行：

```bash
git clone https://github.com/lfyxhappy/lfcode.git
cd lfcode
bun install
bun run dev
```

按需要也可以单独启动 Web UI 或桌面开发环境：

```bash
bun run dev:web
bun run dev:desktop
```

## 架构与扩展

Lfcode 是一个 Bun workspace monorepo：

- `packages/lfcode`：核心运行时、CLI 与会话引擎
- `packages/app`：Web 应用界面
- `packages/desktop`：Electron 桌面宿主
- `packages/ui`：共享 UI 组件
- `packages/plugin`：插件接口
- `packages/sdk/js`：JavaScript SDK

项目配置、Skills、命令、主题、插件和工具可以放在 `.lfcode/` 中，以便按工作区组合和复用。开发提交前可从仓库根目录运行：

```bash
bun run lint
bun run typecheck
```

## 兼容说明

Lfcode 从 opencode 项目演进而来。为照顾已有配置和自动化，部分历史入口仍作为兼容别名保留；新文档、脚本和日常使用应优先采用 `lfcode` 命令与 `LFCODE_*` 环境变量。

## 参与项目

- 在 [Issues](https://github.com/lfyxhappy/lfcode/issues) 报告问题或提出功能建议。
- 在 [Releases](https://github.com/lfyxhappy/lfcode/releases) 获取已发布版本与变更记录。
- 欢迎提交 Pull Request；开始前建议先查看现有 issue，避免重复工作。

Lfcode 使用 [MIT License](LICENSE) 发布。

## Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [lfyxhappy](https://github.com/lfyxhappy)
- **Source:** [lfyxhappy/lfcode](https://github.com/lfyxhappy/lfcode)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/mcp-lfyxhappy-lfcode
- Seller: https://agentstack.voostack.com/s/lfyxhappy
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
