Community Contributions

How to Deploy Paperclip on Akash Network

by aoritus

How to Deploy Paperclip on Akash Network

How to Deploy Paperclip on Akash: Self-Host Your AI Agent Teams

What is Paperclip?

Paperclip is an open-source platform for orchestrating AI agents. It provides shared memory, tool access, and workflow management in a single interface.

This guide covers deploying Paperclip on Akash Network — a decentralized cloud platform.

Paperclip Capabilities

Paperclip provides an orchestration interface for AI agents with the following features:

  • Agent personas: Define distinct roles with specific system prompts and behaviors
  • Tool assignment: Grant agents access to web search, code execution, database queries, and custom functions
  • Workflow chains: Configure agents to pass outputs to other agents in sequence or in parallel
  • Shared memory: Agents access a common state store for context persistence across interactions

Supported Use Cases

Paperclip supports multiple agent collaboration patterns:

PatternDescriptionExample Workflow
Autonomous Coding TeamsMulti-agent software developmentProduct Manager agent writes spec → Developer agent writes code → QA agent reviews
Research & Analysis SquadsWeb scraping and report synthesisAgents scrape sources → synthesize findings → format reports for stakeholders
Customer Support SwarmsTiered support with escalationTier-1 agents handle routine queries → escalate complex issues to Senior Support agent
Content PipelinesAutomated content productionAgents monitor news sources → draft articles → push to CMS for human review

Supported Agents

Paperclip orchestrates agents that process prompts or API calls:

Agent / ToolPrimary FunctionBest For (Target Persona)
Claude CodeGeneral coding, architectureCTO, Senior Developer
CodexCode generation, refactoringBackend Engineer
CursorIDE-based developmentFrontend Developer
Gemini CLIMulti-modal tasksContent Creator
HermesAdvanced reasoningStrategy Consultant
OpenCodeOpen-source CLI, multi-provider codingIndie Developer, Open-source Contributor
PiConversational AI, emotional intelligenceCustomer Success, HR Specialist
Grok BuildReal-time agent building, X integrationSocial Media Analyst, Trend Researcher

Cost Comparison

Check the Usage Pricing Calculator to see the approximate difference.

ProviderEst. Monthly CostProsCons
Akash Network$5.64Lowest cost, decentralized compute.Requires SDL configuration.
AWS$8.26Enterprise infrastructure, mature ecosystem.Higher cost, complex networking.
GCP$6.85Enterprise infrastructure, AI/ML integrations.Higher cost, complex IAM.
Azure$7.32Enterprise infrastructure, corporate integration.Higher cost, complex management portal.

Deployment Steps

Prerequisites

Step 1: Configure the SDL

The SDL defines compute, storage, and networking. Access the Paperclip template from Akash Console or use this base configuration:

---
version: "2.0"
services:
server:
image: ghcr.io/paperclipai/paperclip:sha-6a4e2e1
expose:
- port: 3100
as: 80
to:
- global: true
env:
- DATABASE_URL=postgresql://paperclip:paperclip@db:5432/paperclip
- PORT=3100
- SERVE_UI=true
- PAPERCLIP_DEPLOYMENT_MODE=authenticated
- PAPERCLIP_DEPLOYMENT_EXPOSURE=private
- PAPERCLIP_PUBLIC_URL=http://provider.akash.com
- BETTER_AUTH_SECRET=3e3d4cfd927be0b953e28879b76a811359f8cba18cc40f7f5ae48d6466203cb9
- ANTHROPIC_BASE_URL=https://api.akashml.com/anthropic
- ANTHROPIC_AUTH_TOKEN=akml-...
- ANTHROPIC_MODEL=openai/gpt-oss-120b
- API_TIMEOUT_MS=3000000
params:
storage:
paperclip-data:
mount: /var/lib/postgresql/data
readOnly: false
db:
image: postgres:15-alpine
expose:
- port: 5432
as: 5432
to:
- service: server
env:
- POSTGRES_USER=paperclip
- POSTGRES_PASSWORD=paperclip
- POSTGRES_DB=paperclip
- PGDATA=/var/lib/postgresql/data/pgdata
params:
storage:
pgdata:
mount: /var/lib/postgresql/data
readOnly: false
profiles:
compute:
server:
resources:
cpu:
units: 1
memory:
size: 1gi
storage:
- size: 1Gi
- name: paperclip-data
size: 10Gi
attributes:
persistent: true
class: beta3
db:
resources:
cpu:
units: 1
memory:
size: 512Mi
storage:
- size: 1Gi
- name: pgdata
size: 10Gi
attributes:
persistent: true
class: beta3
placement:
dcloud:
pricing:
server:
denom: uact
amount: 100000
db:
denom: uact
amount: 100000
deployment:
server:
dcloud:
profile: server
count: 1
db:
dcloud:
profile: db
count: 1

Step 2: Set Environment Variables

Add the following variables via the Console UI:

  • DATABASE_URL — Database connection URL.
  • PAPERCLIP_PUBLIC_URL — Temporary placeholder. Will be replaced with actual URL after deployment. Without this, the UI is unavailable.
  • ANTHROPIC_BASE_URL — Endpoint for Claude Code adapter. AkashML in this case.
  • ANTHROPIC_AUTH_TOKEN — API key for accessing our endpoint.
  • ANTHROPIC_MODEL — Model that will be used by default.

Read more about environment variables at Paperclip Docs and AkashML Docs.

img1

Step 3: Deploy

  1. Click Create Deployment
  2. Fund the lease to start deployment
  3. Select provider bid from Akash marketplace

img2

Step 4: Update Public URL

The application requires its public URL for webhook callbacks and external tool integration.

  1. Navigate to active deployment in Console
  2. Copy generated endpoint URL (format without IP port: http://provider.akash.com) from Leases tab

img3

  1. Update deployment, replace PAPERCLIP_PUBLIC_URL with copied URL
  2. Click Update Deployment and wait for container restart

img4

Step 5: Access Interface

After deployment completes, access Paperclip via the endpoint URL. The dashboard provides:

  • Agent team creation
  • Tool and model assignment
  • Real-time execution logs

The first time you open the application, you will be asked to register using email (without confirmation). Let’s choose Claude Code (endpoint is set to AkashML) and make our first agent’s heart beat.

img5

Set goals, plans, and tasks for agents and monitor their actions.

img6

The standard prompt creates a new engineer agent, by default it uses the Claude Code adapter.

If ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN environment variables are set, no agent configuration is required; by default, the Claude adapter will use our own provider (https://api.akashml.com/anthropic) and the openai/gpt-oss-120b model.

Conclusion

Paperclip on Akash Network provides self-hosted AI agent orchestration with persistent storage, public endpoints, and cost efficiency. This way offers the lowest cost and maximum privacy.