Open Source

Agent as a Service

An open-source protocol and CLI for building AI agents that provide real services to real people through conversation. Describe the service, drop in your data, connect to a platform. No code required.

Traditional SaaS Developer writes code deploys app users interact with UI
AaaS You share knowledge agent runs it users interact through chat

What is AaaS?

AaaS (Agent as a Service) is an open-source protocol and CLI for creating AI agents that deliver real services through conversation. It handles the full lifecycle: data storage, transactions, payments, memory, and multi-platform deployment. Available on GitHub.

Install & Get Started

Requires Node.js 18+. Works on Windows, macOS, and Linux.

# Install AaaS globally
npm install -g @streetai/aaas

# Create a new agent workspace
aaas init my-agent

# Open the dashboard for your agent
aaas dashboard my-agent

The dashboard opens with a Setup Guide that walks you through configuring your LLM provider, adding data, writing your service definition, and deploying. Supports Anthropic, OpenAI, Google, Ollama, OpenRouter, and Azure.

How It Works

An AaaS agent is built on seven pillars

Skill
The service definition: what the agent does, its domain knowledge, pricing, boundaries
You write it, or the agent writes it for you
Soul
The agent's personality, tone, and communication style
You write it
Data
Structured data: inventory, listings, contacts, FAQs, anything
Drop files or let the agent build it from conversation
Transactions
Records of every service request from users
Created automatically by the agent
Extensions
Other agents, APIs, and tools the agent can call
You register them, the agent calls them when needed
Memory
Persistent facts the agent remembers across conversations
The agent saves what it learns
Connectors
Platforms and channels the agent listens on
You pick the platforms, the agent serves on all of them

Service Lifecycle

1
Explore
Understand what the user wants, check the data, assess feasibility
2
Propose
Make a plan, calculate cost, get user approval
3
Transact
Register the job, start tracking
4
Deliver
Do the work, send the result
5
Complete
Confirm satisfaction, release payment

Building Your Agent

8 steps from idea to live service

1

Define your service

Think about what service your agent will provide. What problem does it solve? Who are the customers? What are the deliverables and pricing?

Examples: a used phone marketplace, a travel concierge, a tutoring service, a matchmaker, a food ordering agent, a freelance consulting service.
2

Prepare your data

Gather the files, images, documents, and structured data your agent needs. Product listings, menus, course materials, photos, PDFs, or any reference material.

Use the Data tab to upload files, create JSON records, or import external files. You can also send data to the agent in chat and let it organize everything.
3

Set up external services

If your agent needs to call external APIs (payments, shipping, weather, email) or delegate to other agents, register them as extensions.

You can always add extensions later as your service evolves.
4

Populate your service

Use the chat interface, the CLI, or the Data tab to build your service database with natural language. Tell the agent about your products, rules, and processes.

Try chatting in Admin mode: "Add a new product: iPhone 15 Pro, 256GB, Excellent condition, $950". The agent creates the database entry automatically.
5

Write the SKILL

Define how the agent should behave and deliver the service. The SKILL file contains your service catalog, domain knowledge, pricing rules, and boundaries.

In Chat, try: "Write me a SKILL.md for a used iPhone marketplace with these services: browse inventory, list a device, purchase a device." The agent will draft the whole file.
6

Test and improve

Chat with your agent as both a customer and an admin. Try edge cases, ask tricky questions, and refine the skill file based on what you find.

Use Customer mode to simulate a real experience. Switch to Admin mode to fix data, update rules, or debug behavior.
7

Choose platforms and connect

Pick where your agent will be available: HTTP API, Telegram, Discord, Slack, WhatsApp, Relay, or a combination.

Start with one platform to validate, then add more later. Use the Relay if you don't have a public server.
8

Go live

Run your agent and it starts serving on all connected platforms. Monitor transactions, review memory, and keep improving over time.

Use aaas run from the CLI or click Start in the Deploy tab. Check the Overview tab for stats and Transactions to track delivery.

Deploy Anywhere

Connect to one platform or all of them. The agent serves on every connected channel simultaneously.

HTTP API

aaas connect http --port 3300

REST API with CORS enabled. Includes an embeddable chat widget for websites.

Telegram

aaas connect telegram --token BOT_TOKEN

Create a bot via @BotFather, paste the token, done. Responds to DMs and group mentions.

Discord

aaas connect discord --token BOT_TOKEN

Create an app at discord.com/developers, enable Message Content Intent, invite to your server.

Slack

aaas connect slack --bot-token xoxb-... --app-token xapp-...

Create an app at api.slack.com, enable Socket Mode and Event Subscriptions. Replies in threads.

WhatsApp

aaas connect whatsapp --access-token TOKEN --phone-number-id ID

Uses the WhatsApp Business Cloud API via Meta for Developers. Requires a public HTTPS webhook.

Truuze

aaas connect truuze --token trz_prov_xxx

Social platform built for AI agents. Your agent gets a full profile, can post, follow people, and earn currency.

Relay

aaas connect relay

No public server needed. Your agent connects to streetai.org via WebSocket, and we route WhatsApp messages and web chat traffic to it. Works from behind any firewall.

Chat Widget

The fastest way to add your agent to any website. One line of HTML:

<script src="http://your-server:3300/widget.js"
  data-agent="My Agent"
  data-title="Chat with us"
  data-color="#e11d48"
  data-greeting="Hi! How can I help?">
</script>

Renders a floating chat button. Handles conversation history, typing indicators, and mobile responsiveness. No build step, no framework, no dependencies.

Example: AaaS in Action

Dubai Date Matchmaker

Sarah lives in Dubai and knows the dating scene inside out. She doesn't know how to code, but she wants to turn that knowledge into a service.

  1. She installs AaaS and creates an agent workspace
  2. She writes the matchmaking skill: what the agent does, Dubai dating knowledge, pricing, boundaries
  3. She seeds the database with initial profiles and venue data
  4. She connects the agent to Telegram and her website

The agent is now live. When Ahmed messages asking for help finding a date, the agent explores his preferences, proposes a service tier, collects payment, delivers curated matches with compatibility scores, and logs the completed transaction. Sarah earns money while the agent does the work.

Every interaction makes the service better: more profiles in the database means better matches, which means more satisfied users, which means more word of mouth.

Use cases

Beauty salon

Manages service menus, books appointments, sends reminders. Customers browse treatments, pick a time slot, and pay — all through chat.

Real estate agent

Shows available listings, filters by budget and location, schedules viewings. Follows up with interested buyers automatically.

Private tutor

Teaches students based on your course materials. Tracks progress, assigns exercises, adapts to each student's pace.

Restaurant & food ordering

Manages menus, takes orders, coordinates deliveries. Remembers customer preferences and suggests favorites on repeat orders.

Fitness coach

Creates workout plans, tracks client progress, adjusts routines. Handles scheduling, payments, and check-ins through conversation.

Legal assistant

Qualifies client inquiries, collects case details, schedules consultations. The agent handles intake, you handle the law.

Event planner

Manages vendor lists, coordinates timelines, handles guest RSVPs. Clients describe what they want and the agent puts the plan together.

Auto repair shop

Takes service requests, provides cost estimates, schedules drop-offs. Sends updates when the car is ready for pickup.

Travel concierge

Books trips based on your curated destination guides. Checks weather, calculates costs, handles flights and hotels.

Used phone marketplace

Helps buyers browse inventory and sellers list devices. Handles pricing, condition grading, and buyer-seller matching.

Philosophy

The skill is the software

A traditional service app requires developers, designers, infrastructure, and maintenance. AaaS requires one document written by someone who understands the domain. The agent interprets the skill and builds everything else.

The agent decides how

The protocol defines what an agent must do (track transactions, respect escrow, protect privacy) but not how. The agent creates its own database schema, its own workflows, its own communication style.

Transactions create accountability

Every service interaction is tracked from request to completion with a clear audit trail. Users can rate, dispute, and track. Agents build reputation over time.

Extensions create an economy

When agents can call other agents and APIs, every agent becomes both a provider and a consumer. A matchmaker pays a restaurant booking agent which pays a transport agent. Each built by a different person, each earning per transaction.