EKO API

eko-logo
Eko - Build Production-ready Agentic Workflow with Natural Language

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.

Feature Eko Langchain Browser-use Dify.ai Coze
Supported Platform All platform Server side Browser Web Web
One sentence to multi-step workflow
Intervenability
Development Efficiency High Low Middle Middle Low
Task Complexity High High Low Middle Middle
Open-source
Access to private web resources
  • [x] Pure JavaScript: Built for browsers and Node.js.🚀
  • [x] Multi-Agent: Unleash power with multiple Agents in one task.📈
  • [x] Agent Flexibility: Customize new Agents in just one line.🎉
  • [x] Native MCP: Connects seamlessly with Awesome MCP Servers.🔗
  • [x] Dynamic LLM: Balance speed and performance with flexible model choices.⚙️
  • [x] Human-in-the-loop: Intervene when it matters most.🤝
  • [x] Stream Planning: Dynamic rendering made easy.🎨
  • [x] Loop & Listener Tasks: Automate any repetitive task.🤖
  • [ ] Observable Chain
  • [ ] Native A2A

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

// quickstart.ts
const llms: LLMs = {
default: {
provider: "anthropic",
model: "claude-3-5-sonnet-20241022",
apiKey: claudeApiKey || "your-api-key",
config: { baseURL: claudeBaseURL },
},
openai: {
provider: "openai",
model: "gpt-4o-mini",
apiKey: openaiApiKey || "your-api-key",
config: { baseURL: openaiBaseURL },
},
};
let agents: Agent[] = [new ChatAgent(), new BrowserAgent()];
let eko = new Eko({ llms, agents });
let result = await eko.run("Search for the latest news about Musk");
pnpm install @eko-ai/eko
npx ts-node quickstart.ts

Prompt: Collect the latest NASDAQ data on Yahoo Finance, including price changes, market capitalization, trading volume of major stocks, analyze the data and generate visualization reports.

https://github.com/user-attachments/assets/4087b370-8eb8-4346-a549-c4ce4d1efec3

Click here to get the source code.


Prompt: Based on the README of FellouAI/eko on github, search for competitors, highlight the key contributions of Eko, write a blog post advertising Eko, and post it on Write.as.

https://github.com/user-attachments/assets/6feaea86-2fb9-4e5c-b510-479c2473d810

Click here to get the source code.


Prompt: Clean up all files in the current directory larger than 1MB

https://github.com/user-attachments/assets/ef7feb58-3ddd-4296-a1de-bb8b6c66e48b

Click here to Learn more.


Prompt: Automatic software testing

    Current login page automation test:
1. Correct account and password are: admin / 666666
2. Please randomly combine usernames and passwords for testing to verify if login validation works properly, such as: username cannot be empty, password cannot be empty, incorrect username, incorrect password
3. Finally, try to login with the correct account and password to verify if login is successful
4. Generate test report and export

https://github.com/user-attachments/assets/7716300a-c51d-41f1-8d4f-e3f593c1b6d5

Click here to Learn more.

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

Visit our documentation site for:

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

Eko can be used in multiple environments:

  • Browser Extension
  • Web Applications
  • Node.js Applications

Star History Chart

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