eko

FellouAIMIT更新放缓

用自然语言描述就能搭建可上生产环境的智能体工作流,支持浏览器与计算机自动化,省去手写编排逻辑。

Eko (Eko Keeps Operating) - Build Production-ready Agentic Workflow with Natural Language - eko.fellou.ai

v4.1.0发布于 2025-12-29 07:55 UTC4,964star +1 / 7 天447fork同步于 2026-11-10 11:36 UTC

怎么上手

由 README 提炼,执行前请确认
pnpm install @eko-ai/eko
硬件要求按 README 说明

README 未说明;框架本身为纯 JavaScript,运行在浏览器、浏览器扩展与 Node.js 环境,模型算力由所调用的云端 LLM API 提供

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

用自然语言构建生产级 Agent 工作流的 JavaScript 框架,统一运行于浏览器与 Node.js

用自然语言描述就能搭建可上生产环境的智能体工作流,支持浏览器与计算机自动化,省去手写编排逻辑。

核心能力

  • 用一句话描述即可生成多步骤 Agent 工作流
  • 支持多 Agent 并行执行,并处理任务依赖关系
  • 一行代码即可自定义 Agent 与 Tool
  • 原生接入 MCP 服务器生态
  • 支持暂停、恢复、中断与 task_snapshot 快照恢复

容易踩的坑

浏览器或前端代码中不要直接写 API Key,应通过 baseURL 与请求头走后端代理;Node.js 示例首次运行需执行 pnpm playwright install 安装浏览器;运行示例前需在根目录先 pnpm install 与 pnpm build,并至少配置一个模型 API Key

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本v4.1.0
  1. v4.1.0最新正式版2025-12-29 · 2025-12-29 07:55 UTC

    这个版本没有写更新说明。

  2. v4.0.82025-12-12 · 2025-12-12 10:06 UTC

    这个版本没有写更新说明。

  3. v4.0.72025-12-12 · 2025-12-12 03:40 UTC

    这个版本没有写更新说明。

  4. v4.0.62025-12-11 · 2025-12-11 16:15 UTC

    这个版本没有写更新说明。

  5. v4.0.52025-12-10 · 2025-12-10 15:10 UTC

    这个版本没有写更新说明。

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    License Build Status Version

    Eko (pronounced like 'echo') is a production-ready JavaScript framework that enables developers to create reliable agents, from simple commands to complex workflows. It provides a unified interface for running agents in both computer and browser environments.

    News

    • 2025-11: Eko 4.0 supports chat conversations & optimizes agent logic.
    • 2025-09: Eko 3.0 introduces dependency-aware parallel agent execution.
    • 2025-09: New pause, resume, and interrupt controls with task_snapshot workflow recovery.
    • 2025-09: Monorepo tooling migrated to pnpm for consistent workspace management.

    Upgrading to Eko 4.0

    Follow these steps when moving an existing Eko 3.x project to 4.0:

    1. Update dependencies with pnpm up @eko-ai/eko @eko-ai/eko-nodejs @eko-ai/eko-web @eko-ai/eko-extension.
    2. Regenerate saved workflows or exported plans so they use the v3 schema and dependency graph format.
    3. Clean and reinstall using pnpm (rm -rf node_modules && pnpm install), then rebuild any browser or desktop bundles.
    4. Re-run automated demos and update documentation to reflect the new pause/interrupt APIs and parallel agent behavior.

    Framework Comparison

    FeatureEkoLangchainBrowser-useDify.aiCoze
    Supported PlatformAll platformServer sideBrowserWebWeb
    One sentence to multi-step workflow✅❌✅❌❌
    Intervenability✅✅❌❌❌
    Task Parallel✅❌❌❌❌
    Development EfficiencyHighLowMiddleMiddleLow
    Task ComplexityHighHighLowMiddleMiddle
    Open-source✅✅✅✅❌
    Access to private web resources✅❌❌❌❌

    Features

    • Pure JavaScript: Built for browsers and Node.js.🚀
    • Multi-Agent: Unleash power with multiple Agents in one task.📈
    • Agent/Tool Flexibility: Customize new Agents and Tools in just one line.🎉
    • Native MCP: Connects seamlessly with Awesome MCP Servers.🔗
    • Dynamic LLM: Balance speed and performance with flexible model choices.⚙️
    • Human-in-the-loop: Intervene when it matters most.🤝
    • Stream Planning: Dynamic rendering made easy.🎨
    • Loop & Listener Tasks: Automate any repetitive task.🤖
    • Observable Chain: Coming soon
    • Native A2A: Coming soon

    Quickstart

    Note: Please refer to the Eko Quickstart guide guide for full instructions on how to run it.

    Security Warning

    DO NOT use API Keys in browser/frontend code!

    This will expose your credentials and may lead to unauthorized usage.

    Best Practices: Configure backend API proxy request through baseURL and request headers.

    Please refer to the link: https://eko.fellou.ai/docs/getting-started/configuration#web-environment

    const llms: LLMs = {
      default: {
        provider: "anthropic",
        model: "claude-sonnet-4-5-20250929",
        apiKey: "your-api-key"
      },
      gemini: {
        provider: "google",
        model: "gemini-2.5-pro",
        apiKey: "your-api-key"
      },
      openai: {
        provider: "openai",
        model: "gpt-5",
        apiKey: "your-api-key"
      },
      // OpenAI-compatible models (Qwen, Doubao, etc.)
      qwen: {
        provider: "openai",
        model: "qwen-plus",
        apiKey: "your-qwen-api-key",
        config: {
          baseURL: "https://dashscope-intl.aliyuncs.com/compatible-mode/v1"
        }
      },
      doubao: {
        provider: "openai",  // Use OpenAI provider for compatibility
        model: "doubao-seed-1-6-250615",  // or other Doubao model
        apiKey: "your-volcengine-api-key",
        config: {
          baseURL: "https://ark.cn-beijing.volces.com/api/v3"  // Volcengine endpoint
        }
      }
    
    };
    
    let agents: Agent[] = [new BrowserAgent(), new FileAgent()];
    let eko = new Eko({ llms, agents });
    let result = await eko.run("Search for the latest news about Musk, summarize and save to the desktop as Musk.md");
    
    $ pnpm install @eko-ai/eko
    

    Example Projects

    The repository ships with three workspace examples under the example/ folder.

    Prerequisites

    Before running any example, install dependencies and build the core packages from the root directory:

    pnpm install
    pnpm build
    

    Browser Extension (example/extension)

    cd example/extension
    pnpm install
    pnpm run build
    

    Load the generated dist directory via chrome://extensions → Developer Mode → Load unpacked. Configure your API key in the extension options before running the automation task.

    Node.js Automation (example/nodejs)

    cd example/nodejs
    pnpm install
    pnpm playwright install   # first time only, installs browsers
    pnpm run build
    OPENAI_API_KEY=... ANTHROPIC_API_KEY=... pnpm run start
    

    The Node.js demo drives Playwright through Eko; provide at least one model API key before running it.

    Web Login Demo (example/web)

    cd example/web
    pnpm install
    pnpm run start
    

    This starts a React dev server on the default port with a simple login flow that you can automate with the browser or web agents.

    Use Cases

    • Browser automation and web scraping
    • System file and process management
    • Workflow automation
    • Data processing and organization
    • GUI automation
    • Multi-step task orchestration

    Documentation

    Visit our documentation site for:

    • Getting started guide
    • API reference
    • Usage examples
    • Best practices
    • Configuration options

    Development Environments

    Eko can be used in multiple environments:

    • Browser Extension
    • Web Applications
    • Node.js Applications

    Community and Support

    Star History Chart

    License

    Eko is released under the MIT License. See the LICENSE file for details.