Skip to main content

AI Agent Platform SDK with built-in billing management

Project description

FlowStack SDK

From local agent to production in 5 minutes.

FlowStack is the simplest way to build and deploy AI agents. Write Python tools, test locally, deploy instantly. No infrastructure, no DevOps, no complexity.

🚀 Why FlowStack?

Think Vercel for AI agents. You focus on agent logic, we handle everything else.

  • Write tools in Python - Natural @agent.tool decorator
  • Deploy in one command - agent.deploy() and you're live
  • Instant production API - Get HTTPS endpoints immediately
  • Built-in memory - DataVault for persistent agent state
  • Multi-provider support - Switch between OpenAI, Claude, Llama seamlessly

🎯 Perfect For

  • 🥷 Indie developers - Build weekend projects that scale
  • 🚀 Startups - Rapid prototyping without infrastructure overhead
  • 🤖 Automation enthusiasts - Replace Zapier with custom AI logic

⚡ Quick Start

1. Install & Deploy in 5 Minutes

# Install
pip install flowstack

# Get your API key from flowstack.fun
export FLOWSTACK_API_KEY="fs_..."

2. Build Your First Agent

from flowstack import Agent

# Create agent with tools
agent = Agent("customer-helper")

@agent.tool
def lookup_order(order_id: str) -> dict:
    """Look up customer order status"""
    # Your business logic here
    return {"status": "shipped", "tracking": "UPS123456789"}

@agent.tool  
def update_address(order_id: str, new_address: str) -> str:
    """Update shipping address for an order"""
    # Your business logic here
    return f"Address updated for order {order_id}"

# Test locally
response = agent.chat("What's the status of order #12345?")
print(response)  # Agent calls lookup_order() automatically

3. Deploy to Production

# Deploy with one command
endpoint = agent.deploy()
print(f"🎉 Your agent is live at: {endpoint}")

# Now available as REST API:
# POST https://your-agent.flowstack.fun/chat
# {"message": "What's the status of order #12345?"}

🧠 Persistent Memory with DataVault

Agents remember context across conversations:

@agent.tool
def save_preference(user_id: str, preference: str) -> str:
    """Save user preference"""
    agent.vault.store('preferences', {
        'user_id': user_id, 
        'preference': preference
    })
    return "Preference saved!"

@agent.tool
def get_recommendations(user_id: str) -> list:
    """Get personalized recommendations"""
    prefs = agent.vault.query('preferences', {'user_id': user_id})
    # Use preferences to customize recommendations
    return ["item1", "item2", "item3"]

🔄 Multi-Provider Flexibility

Switch AI providers without changing code:

# Use managed Bedrock (included in pricing)
agent = Agent("my-agent", model="claude-3-sonnet")

# Or bring your own OpenAI key  
agent = Agent("my-agent", 
    provider="openai",
    model="gpt-4o", 
    byok={"api_key": "sk-your-key"}
)

# Same tools, same deployment, different AI provider

📊 Real-World Examples

Slack Customer Support Bot

agent = Agent("support-bot")

@agent.tool
def search_knowledge_base(query: str) -> str:
    # Search your docs/FAQ
    return search_results

@agent.tool  
def create_ticket(issue: str, priority: str) -> str:
    # Create Zendesk/Jira ticket
    return ticket_id

# Deploy and connect to Slack webhook
endpoint = agent.deploy()

E-commerce Order Assistant

agent = Agent("order-assistant")

@agent.tool
def check_inventory(product_id: str) -> dict:
    # Check your inventory system
    return {"in_stock": True, "quantity": 50}

@agent.tool
def process_return(order_id: str, reason: str) -> str:
    # Handle return logic
    return "Return processed"

# Deploy and embed in your website
endpoint = agent.deploy()

Content Creation Workflow

agent = Agent("content-creator")

@agent.tool
def research_topic(topic: str) -> str:
    # Research from multiple sources
    return research_summary

@agent.tool
def publish_to_cms(title: str, content: str) -> str:
    # Publish to WordPress/Contentful
    return "Published successfully"

# Deploy and trigger via webhook
endpoint = agent.deploy()

💰 Simple Pricing

Session-based pricing. One API call = one session, regardless of message count.

  • Free: 25 sessions/month
  • Hobbyist: $15/month, 200 sessions
  • Starter: $50/month, 1,000 sessions
  • Professional: $200/month, 5,000 sessions
  • Enterprise: Custom pricing, 25,000+ sessions

📚 Learn More

🛠️ Development

# Local development
git clone https://github.com/flowstack-fun/flowstack.git
cd flowstack
pip install -e .

# Run tests  
pytest tests/

# Build docs
mkdocs serve

🤝 Support


Built for developers who ship fast. 🚢

Stop building infrastructure. Start building agents.

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

flowstack-1.0.0.tar.gz (14.0 kB view details)

Uploaded Source

Built Distribution

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

flowstack-1.0.0-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file flowstack-1.0.0.tar.gz.

File metadata

  • Download URL: flowstack-1.0.0.tar.gz
  • Upload date:
  • Size: 14.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.6

File hashes

Hashes for flowstack-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1ab51edb820979688f33b4a43b2d3888dc115cced7da6ea2845359e2e7329f5b
MD5 c06b9888c7deada737c4d16d14bfd069
BLAKE2b-256 0dfe5137281f5bf3922030ce51c277dd77cf252b35f1473373aafc0a76cf78f2

See more details on using hashes here.

File details

Details for the file flowstack-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: flowstack-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 13.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.6

File hashes

Hashes for flowstack-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d58e0e3bbaaf388b59f15e32756f147a2acd7a519542e91a8c04c0898fcd5e53
MD5 d4b0abdb21e87d0c29487ae10ce5784b
BLAKE2b-256 7a98094364c94d82231c4d2855ee0c2fb209c92424e91b9dc7ad3b109f323b1d

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