Skip to main content

A command-line tool and SDK for deploying, managing, and interacting with AI agents

Project description

RunAgent logo RunAgent Logo

Secured, reliable AI agent deployment at scale

Write agent once, use everywhere

Read the Docs

PyPI PyPI - Downloads Python Versions Discord


What is RunAgent?

RunAgent is an agentic ecosystem that enables developers to build AI agents once in Python using any python agentic frameworks like LangGraph, CrewAI, Letta, LlamaIndex, then access them natively from any programming language. The platform features stateful self-learning capabilities with RunAgent Memory (coming soon), allowing agents to retain context and improve it's action memory over time.

Animated SVG

RunAgent has multi-language SDK support for seamless integration across TypeScript, JavaScript, Go, and other languages, eliminating the need to rewrite agents for different tech stacks. RunAgent Cloud provides automated deployment with serverless auto-scaling, comprehensive agent security, and real-time monitoring capabilities.

Quick Start

Installation

pip install runagent

Initialize Your First Agent

# The basic
runagent init my-agent                # Basic template


# Also you can choose from various frameworks
runagent init my-agent --langgraph    # LangGraph template
runagent init my-agent --crewai       # CrewAI template  
runagent init my-agent --letta        # Letta template

Agent Configuration

Every RunAgent project requires a runagent.config.json file that defines your agent's structure and capabilities.

This configuration file specifies basic metadata (name, framework, version), defines entrypoints for either Python functions or external webhooks, and sets environment variables like API keys. The entrypoints array is the core component, allowing you to expose functions from any Python framework (LangGraph, CrewAI, OpenAI) or integrate external services (N8N, Zapier) through a unified interface accessible from any programming language.

Example Configuration

{
  "agent_name": "LangGraph Problem Solver",
  "description": "Multi-step problem analysis and solution validation agent",
  "framework": "langgraph",
  "version": "1.0.0",
  "agent_architecture": {
    "entrypoints": [
      {
        "file": "agent.py",
        "module": "solve_problem",
        "tag": "solve_problem"
      },
      {
        "file": "agent.py",
        "module": "solve_problem_stream",
        "tag": "solve_problem_stream"
      }
    ]
  },
  "env_vars": {
    "OPENAI_API_KEY": "your-api-key"
  }
}

Local Deployment

Deploy and test your agents locally with full debugging capabilities.

Deploy Agent Locally

cd my-agent
runagent serve .

This starts a local FastAPI server with:

  • Auto-allocated ports to avoid conflicts
  • Real-time debugging and logging
  • WebSocket support for streaming
  • Built-in API documentation at /docs

LangGraph Problem Solver Agent (An Example)

# agent.py
from langgraph.graph import StateGraph
from typing import TypedDict, List

class ProblemState(TypedDict):
    query: str
    num_solutions: int
    constraints: List[dict]
    solutions: List[str]
    validated: bool

def analyze_problem(state):
    # Problem analysis logic
    return {"solutions": [...]}

def validate_solutions(state):
    # Validation logic
    return {"validated": True}

# Build the graph
workflow = StateGraph(ProblemState)
workflow.add_node("analyze", analyze_problem)
workflow.add_node("validate", validate_solutions)
workflow.add_edge("analyze", "validate")
workflow.set_entry_point("analyze")

app = workflow.compile()

def solve_problem(query, num_solutions, constraints):
    result = app.invoke({
        "query": query,
        "num_solutions": num_solutions,
        "constraints": constraints
    })
    return result

async def solve_problem_stream(query, num_solutions, constraints):
    async for event in app.astream({
        "query": query,
        "num_solutions": num_solutions,
        "constraints": constraints
    }):
        yield event

🌐 Access from any language:

RunAgent offers multi-language SDKs : Rust, TypeScript, JavaScript, Go, and beyond—so you can integrate seamlessly without ever rewriting your agents for different stacks.

Python SDK JavaScript SDK Rust SDK Go SDK
from runagent import RunAgentClient

client = RunAgentClient(
    agent_id="lg-solver-123",
    entrypoint_tag="solve_problem",
    local=True
)

result = client.run(
    query="My laptop is slow",
    num_solutions=3,
    constraints=[{
        "type": "budget", 
        "value": 100
    }]
)
print(result)

# Streaming
for chunk in client.run(
    query="Fix my phone", 
    num_solutions=4
):
    print(chunk)
import { RunAgentClient } from 'runagent';

const client = new RunAgentClient({
  agentId: "lg-solver-123",
  entrypointTag: "solve_problem",
  local: true
});

await client.initialize();
const result = await client.run({
  query: "My laptop is slow",
  num_solutions: 3,
  constraints: [{
    type: "budget",
    value: 100
  }]
});
console.log(result);

// Streaming
for await (const chunk of client.run({
  query: "Fix my phone",
  num_solutions: 4
})) {
  process.stdout.write(chunk);
}
use runagent::client::RunAgentClient;
use serde_json::json;
use futures::StreamExt;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = RunAgentClient::new(
        "lg-solver-123", 
        "solve_problem", 
        true
    ).await?;
    
    let result = client.run(&[
        ("query", json!("My laptop is slow")),
        ("num_solutions", json!(3)),
        ("constraints", json!([{
            "type": "budget", 
            "value": 100
        }]))
    ]).await?;
    
    println!("Result: {}", result);
    
    // Streaming
    let mut stream = client.run_stream(&[
        ("query", json!("Fix my phone")),
        ("num_solutions", json!(4))
    ]).await?;
    
    while let Some(chunk) = stream.next().await {
        print!("{}", chunk?);
    }
    
    Ok(())
}
package main

import (
    "context"
    "fmt"
    "github.com/runagent-dev/runagent-go/pkg/client"
)

func main() {
    client, _ := client.New(
        "lg-solver-123", 
        "solve_problem", 
        true
    )
    defer client.Close()

    result, _ := client.Run(
        context.Background(), 
        map[string]interface{}{
            "query": "My laptop is slow",
            "num_solutions": 3,
            "constraints": []map[string]interface{}{
                {"type": "budget", "value": 100},
            },
        }
    )
    fmt.Printf("Result: %v\n", result)

    // Streaming
    stream, _ := client.RunStream(
        context.Background(),
        map[string]interface{}{
            "query": "Fix my phone",
            "num_solutions": 4,
        }
    )
    defer stream.Close()

    for {
        chunk, hasMore, _ := stream.Next(context.Background())
        if !hasMore { break }
        fmt.Print(chunk)
    }
}

Action Memory System (Coming Soon)

RunAgent is introducing Action Memory - a revolutionary approach to agent reliability that focuses on how to remember rather than what to remember.

How It Will Work

  • Action-Centric: Instead of storing raw conversation data, it captures decision patterns and successful action sequences
  • Cross-Language: Memory persists across all SDK languages seamlessly
  • Reliability Focus: Learns from successful outcomes to improve future decisions
  • Ecosystem Integration: Works with any framework - LangGraph, CrewAI, Letta, and more

This will ensure your agents become more reliable over time, regardless of which programming language or framework you use to interact with them.


Remote Deployment (Coming very soon)

Deploy your agents with enterprise-grade infrastructure and experience the fastest agent deployment.

⚡Fastest agent deployment

From zero to production in the time it takes to draw a breath, making RunAgent one of the fastest agent deployment platforms available on planet earth 🌍 .

Security-First Architecture

Every agent runs in its own isolated sandbox environment:

  • Complete process isolation
  • Network segmentation
  • Resource limits and monitoring
  • Zero data leakage between agents

✨ The +++999 Aura of Agent Deployment

Our remote deployment will provide:

  • Auto-scaling based on demand
  • Global edge distribution
  • Built-in monitoring and analytics
  • Production-grade security and compliance

Documentation


Community & Support


Ready to build universal AI agents?

Get Started with Local Development →

🌟 Star us on GitHub💬 Join Discord📚 Read the Docs

Visitor Badge

Made with ❤️ by the RunAgent Team

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

runagent-0.1.29.tar.gz (18.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

runagent-0.1.29-py3-none-any.whl (159.1 kB view details)

Uploaded Python 3

File details

Details for the file runagent-0.1.29.tar.gz.

File metadata

  • Download URL: runagent-0.1.29.tar.gz
  • Upload date:
  • Size: 18.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for runagent-0.1.29.tar.gz
Algorithm Hash digest
SHA256 f99e17ca96026f150cd0bcd9887ceccb69d662663a017e9ea28bba0b63660ed1
MD5 036aa6cd15c5ef42a2acee7a1bbadce8
BLAKE2b-256 7f7d901ee869799c4303f0d61b92d5ef9fbb6bf87c49a2baf32cbbda3fdff21c

See more details on using hashes here.

File details

Details for the file runagent-0.1.29-py3-none-any.whl.

File metadata

  • Download URL: runagent-0.1.29-py3-none-any.whl
  • Upload date:
  • Size: 159.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for runagent-0.1.29-py3-none-any.whl
Algorithm Hash digest
SHA256 fd913e51be17b5f37778665171089dd90640e35355da05e302d3edd5fab7b0e5
MD5 c56bdc13a924d798371e1bb7e4e851ff
BLAKE2b-256 6d92a637bb1a130d3ea6867326b8a53bae11a8168130d3cb511a4acca32e4c46

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page