Skip to content

refly-ai/refly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8,765 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

img_v3_02uh_63c35442-a356-4399-b10f-72f4ffd645fg

English | δΈ­ζ–‡

Refly β€” The First Open-Source Agent Skills Builder Powered by Vibe Workflow

GitHub stars

APIs for Lovable Β· Webhooks for Slack/Lark Β· Skills for Claude Code

Skills are not prompts. They are durable infrastructure.

Refly is the first open-source platform for building stable, atomic, and versioned agent skills. Skills are deterministic agent capabilitiesβ€”reusable across workflows, teams, and runtimes.

TL;DR: Refly compiles your enterprise SOPs into executable agent skills. Built in 3 minutes. Shipped anywhere.


Quick Start

Deploy Refly

  • πŸ“˜ Self-Deployment Guide
    (Recommended for Developers) Step-by-step guide to deploying Refly on your own server using Docker.

  • πŸ”Œ API Reference
    Complete API documentation for integrating Refly into your applications.

What's Next?

After deployment, choose your path based on your use case:

I want to... Start here Time
πŸ”§ Build my first workflow Create a Workflow 5 mins
πŸ”Œ Call workflows via API API Integration 10 mins
πŸ’¬ Connect to Lark Webhook Setup 15 mins
πŸ€– Export for Claude Code Export Skills 15mins
🦞 Build a ClawdBot Build Clawdbot 20 mins

Create Your First Workflow

Note: This section assumes you have completed self-deployment and can access Refly at http://localhost:5700

Step 1: Register and Log In

  1. Open http://localhost:5700 in your browser
  2. Register with your email and password
  3. Configure your first model provider:
    • Click the account icon (top right) β†’ Settings
    • Add a provider (e.g., OpenAI, Anthropic)
    • Add your first chat model
    • Set it as default

πŸ“– Detailed setup with screenshots: Self-Deployment Guide

Step 2: Create a Workflow

  1. Click "New Workflow" on the home page
  2. Choose a template or start from scratch:
    • Blank Canvas: Build with visual nodes
    • Vibe Mode: Describe your workflow in natural language

Example - Product Research Workflow:

1. Add "Web Search" node - searches for product information
2. Add "LLM" node - analyzes search results
3. Add "Output" node - formats the report
4. Connect the nodes
5. Click "Save"

Step 3: Test Your Workflow

  1. Click "Run" button
  2. Enter test input (e.g., a product URL)
  3. View execution results in real-time
  4. Check logs if something fails

Use Cases

Use Case 1: API Integration

Goal: Call your workflow from your application via REST API

Get Your API Credentials

  1. Go to Settings β†’ API Keys
  2. Click "Generate New Key"
  3. Copy your API key (keep it secure!)

Make Your First API Call

curl -X POST https://your-refly-instance.com/api/v1/workflows/{WORKFLOW_ID}/execute \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "input": {
      "product_url": "https://example.com/product"
    }
  }'

Response:

{
  "execution_id": "exec_abc123",
  "status": "running"
}

Check Execution Status

curl https://your-refly-instance.com/api/v1/executions/{execution_id} \
  -H "Authorization: Bearer YOUR_API_KEY"

πŸ“– Full API Documentation: API Reference


Use Case 2: Webhook for Lark

Goal: Trigger your workflow when someone sends a message in Lark

Prerequisites

  • A Lark workspace with admin access
  • A workflow created in Refly

Setup Steps

  1. In Refly:

    • Open your workflow
    • Click "Settings" β†’ "Triggers"
    • Enable "Webhook Trigger"
    • Copy the Webhook URL
  2. In Slack:

    • Go to api.feishu.com/apps
    • Create a "Custom App"
    • Navigate to "Event Subscriptions"
    • Paste the Refly Webhook URL into "Request URL"
    • Click "Add Event" and select "Receive Message"
    • Go to "Version Management" and publish the app
  3. Test:

    • In Feishu, find your bot in the search barSend a message (e.g., analyze report.pdf)
    • Your workflow executes and returns results via the webhook

⚠️ Note: Detailed Slack integration guide coming soon. For now, see API Reference for webhook configuration.


Use Case 3: Skills for Claude Code

Goal: Export your Refly workflows as Claude Code skills

Quick Start

  1. Install CLI
npm install -g @refly-ai/refly-skills
  1. Export Workflow
refly-skills export --workflow-id <your-workflow-id>

This generates a .refly skill file in the skills/ directory.

  1. Use in Claude Code

The exported skill is automatically available in Claude Code. Claude can now invoke your workflow as a tool!

Example

# Export your product research workflow
refly-skills export --workflow-id wf_product_research

# Claude Code can now use it:
User: "Research this product and analyze competitors"
Claude: [Uses product_research skill] β†’ Returns detailed analysis

πŸ“– Documentation: refly-ai/refly-skills


Use Case 4: Build Clawdbot

πŸ“– Tutorial: (https://powerformer.feishu.cn/wiki/YxMRwsQFriAMNukKr5Yc9OjMnnf)


Why Refly?

Most AI Agents fail in production because they rely on "Vibe-coded" scripts and fragile, black-box logic. As the ecosystem moves toward agentic frameworks like Claude Code, AutoGen, and MCP, the bottleneck is no longer the LLMβ€”it's the lack of standardized, reliable actions.

Refly bridges the gap between raw APIs and intelligent agents. We allow you to codify messy business logic into structured, version-controlled Agent skills that any agent can invoke with 100% reliability.

Stop hard-coding tools. Build modular skills once in Refly's visual IDE and deploy them as MCP servers, standard APIs, or portable SDKs to any agent framework.


Core Capabilities

🎯 Construct with Vibe (Copilot-led Builder)

Describe your business logic in natural language, and Refly's Model-Native DSL compiles your intent into a high-performance skill.

  • Intent-Driven Construction: Describe the work once; Refly turns intent into deterministic, reusable, and composable skills.
  • Efficiency at Scale: Streamlined DSL optimized for LLMs, ensuring fast execution and significantly lower token costs.
  • 3-Minute Deployment: Transition from a static enterprise SOP to a production-ready agent skill in under 3 minutes.

⚑ Execute with Control (Intervenable Runtime)

Break the "black box" of AI execution with a stateful runtime designed for deterministic reliability.

  • Intervenable Runtime: Pause, audit, and re-steer agent logic mid-run to ensure 100% operational compliance.
  • Deterministic Guarantees: Enforce strict business rules that minimize hallucinations and handle failure recovery.

πŸš€ Ship to Production (Unified Agent Stack)

Unify MCP integrations, tools, models, and reusable skills into a single execution layer.

  • Universal Delivery: Export as APIs for Lovable, webhooks for Slack, or native tools for Claude Code and Cursor.
  • Stable Scheduling: Run workflows reliably on schedule with managed execution.

πŸ›οΈ Govern as Assets (Skill Registry)

Transform fragile scripts into governed, shared infrastructure across your organization.

  • Central Skill Registry: Securely manage, version, and share agent capabilities.
  • Team Workspace Collaboration: Build together with native version control and audit logs.

Ecosystem

Refly is designed to be the universal bridge between your existing enterprise toolchain and the next generation of agentic runtimes.

Tooling & Protocols (Inputs)

Bring your own data and logic into Refly with zero friction.

  • 3,000+ Native Tools: Seamlessly integrate with Stripe, Slack, Salesforce, GitHub, etc.

A full list of supported model and tools providers can be found here img_v3_02uh_37c05264-a390-4ceb-9a96-efce1a61d1eg

  • MCP Support: Full compatibility with Model Context Protocol servers
  • Private Skill Connectors: Connect to your databases, scripts, and internal systems

Agent Runtimes & Platforms (Outputs)

Export your deterministic skills to any environment where work happens.

img_v3_02uh_2599ba2c-18f0-445d-b95c-aa7da6e41aag
  • AI Coding Tools: Native export for Claude Code and Cursor (coming soon)
  • App Builders: Power Lovable or custom frontends via stateful APIs
  • Automation Hubs: Deploy as webhooks for Slack or Microsoft Teams
  • Agent Frameworks: Compatible with AutoGen, Manus, LangChain, and custom Python stacks

Why Teams Choose Refly

For Builders: From Vibe to Production

Most agent tooling today falls into two categories:

  • Workflow builders (n8n, Dify): Great for orchestration, but workflows are fragile, trigger-only "black boxes," and hard to reuse.
  • Agent frameworks (LangChain): Powerful primitives, but require heavy engineering, manual boilerplate, and high maintenance to keep running. Refly eliminates the friction of manual configuration, giving you the fastest path from a "vibe" to a usable agent tool. By using our Streamlined DSL, you get the speed of a GUI with the precision of code.
Dimension Legacy Automation
(n8n, Dify)
Code-First SDKs
(LangChain)
Refly Skills
Interaction Depth Trigger-only
Black box
Programmatic
Code changes
Intervenable runtime
Steer logic mid-run
Construction Manual API wiring & JSON Manual Python/TS boilerplate Copilot-led
Describe intent β†’ skills generated
Recovery Fail = restart from scratch Debug β†’ redeploy β†’ rerun Hot-fix
Repair workflows during execution
Portability Hard to reuse across environments Framework-specific Export everywhere
To Claude Code, Cursor, Manus
Deployment Limited function tools Custom microservices Production Ready
Stateful, validated APIs

For Enterprise: Scalable Skills Governance

Workflow tools like n8n are great for basic connectivity, and frameworks like LangChain offer powerful primitives β€” but neither provides the governed, production-ready capability layer required for enterprise agent infrastructure.

Refly acts as the Agent skills builder, providing the governance and reliability infrastructure required to deploy AI across the entire organization.

Enterprise Requirement Legacy Tools
(Workflow-first)
SDKs
(Code-first)
Refly (Skill OS)
Governance & Reuse Templates are copied and
reconfigured per instance
No native registry
for sharing logic
Central skill registry
Versioned, shareable capability assets
Operational Reliability Trigger-based
limited recovery
Custom handling required Stateful runtime
With validation + failure recovery
SOP Enforcement Workflows drift
across copies
Depends on manual
engineering discipline
SOP-grade deterministic skills
With controlled execution
Deployment Instance-bound workflows Code maintained manually
per team
Local-first, on-prem ready
Open-source infrastructure
Total Cost (TCO) Overhead grows with
workflow complexity
High engineering
maintenance costs
Minimal DSL
Reduces token spend

Community & Support


Contributing

For those who'd like to contribute code, see our Contribution Guide. At the same time, please consider supporting Refly by sharing it on social media and at events and conferences.

We are looking for contributors to help translate Refly into languages other than Mandarin or English. If you are interested in helping, please see the Contribution Guide for more information.


License

This repository is licensed under the ReflyAI Open Source License, which is essentially the Apache 2.0 License with some additional restrictions.