Clawder Logo

Clawder v1.0.0 Documentation

Thank you for your purchase! We are incredibly grateful that you chose Clawder for your SaaS journey. Building this project was a labor of love, and we are here to support you along your journey, empower you, and watch your business scale. If you love using our project, please consider leaving us a rating on Codester. It means the world to our team at Monzed!

The first full-stack agentic builder designed for the production era.

Experience the next generation of software development. Turn your ideas into reality by just describing your dream app, and let our autonomous AI agents handle the rest. Build full-stack web and native mobile apps with 33 integrated tools—at 50% of the cost of any other platform.

What can you build? A B2B project management app, a freelance client portal, a wellness fitness app, a real-time dashboard, or a personal finance portal. Just type your prompt and watch it build.

System Architecture & Stack

Clawder operates on a deeply integrated, highly-scalable modern infrastructure. It is fully typed and built for enterprise deployments.

Project File Structure

Understanding the source code layout is crucial for modifying Clawder's internal engine.

clawder/
├── public/                 # Static assets, branding logos, og-images, and favicons
├── scripts/                # Utility scripts (e.g., Codester build pipeline, asset obfuscation)
├── supabase/               # Database SQL migrations and schema architecture
├── src/
│   ├── app/                # Next.js App Router (Landing page, Workspace UI, API routes)
│   ├── components/         # Reusable React UI (ChatPanel, Navbar, Authentication Modals)
│   ├── hooks/              # Custom React state hooks
│   ├── lib/                # Shared utilities, Supabase Auth context, and Stripe configs
│   ├── shared/             # TypeScript type definitions and shared interfaces
│   └── server/             # The core AI Brain (Express backend, WebSockets, E2B orchestration)
│       ├── core/           # Core intelligence and AI model routing
│       ├── mcp/            # Model Context Protocol connection clients
│       ├── sandbox/        # E2B microVM execution and filesystem mounting
│       ├── skills/         # Default registered agent capabilities (.md)
│       ├── tools/          # The 33 TS files containing every Agentic Action logic
│       ├── index.ts        # Entry point for the backend
│       └── server.ts       # Express server and WebSocket connection handler
├── package.json            # Architecture dependencies and PM2 run scripts
├── tsconfig.json           # TypeScript configuration
└── .env                    # Secret keys, API tokens, and Webhook definitions

Proprietary Context Compression

Clawder is vastly different from standard LLM wrappers because of our proprietary 3-Tier Context Compression Algorithm (Micro → Caveman → Genome).

Massive SaaS Margins By stripping token filler and compacting AI history into minimal genome representations, Clawder reduces LLM API token consumption by up to 80%. It is fundamentally cheaper for you to wrap Anthropic or Google's APIs inside Clawder than it is to use them directly. If you host Clawder as a SaaS, this compression leaves you with incredibly high profit margins.

Features & AI Arsenal

AI Models & Chat Modes

Clawder natively routes queries to the world's most advanced intelligence models. Users can freely switch between intelligence providers mid-conversation. Below is the list of our currently supported next-generation models:

Anthropic
  • Claude 4.7 Opus
  • Claude 4.6 Sonnet
Google
  • Gemini 3.1 Pro (Preview)
  • Gemini 3 Flash (Preview)
  • Gemini 2.5 Pro
  • Gemini 2.5 Flash
OpenAI
  • GPT-5.4 Pro
  • GPT-5.4 Thinking
  • GPT-5.4 Mini

The user can interact with these models in three distinct modes, using our beautifully designed interfaces:

Agent Mode

The standard operating mode. The AI acts as a Senior Engineer with full access to the 33-tool arsenal, reasoning deeply to build entire full-stack applications.

Swarm Mode

Orchestrates parallel sub-agents. The Master AI delegates tasks (e.g., frontend, backend, database) to specialized workers who code simultaneously to save time.

Ask Mode

Fast answers. No tools. Token cheap. Used for simple conversational queries where codebase modification is not required.

The 33 Autonomous Tools

The AI Agent is equipped with exactly 33 highly specialized TypeScript tools running inside an E2B Sandbox. These are all located in src/server/tools/.

Agent

Orchestrates sub-agents to parallelize work.

AskUser

Pauses execution to ask the human a question.

Bash

Executes terminal commands in the E2B Sandbox.

Clone

Clones a UI design directly from a URL.

Deploy

Ships the project instantly to Vercel or Netlify.

DesignSystem

Resolves professional color & typography tokens.

Edit

Surgically edits contiguous lines of code.

FileTree

Maps out the entire project directory layout.

GitTool

Executes native git version control commands.

GitHubImport

Imports an external GitHub repository.

GitHubSync

Pushes local sandbox changes to a remote repo.

Glob

Finds specific files via wildcard matching.

Grep

Performs exact string matching across the codebase.

Ls

Lists directory contents and metadata.

LSP

Queries the TypeScript Language Server for errors.

ListMcpResources

Lists active data from connected MCP Servers.

MobileBuild

Boots React Native environments for iOS/Android.

MultiEdit

Modifies multiple separate chunks in a single file.

NotebookEdit

Manipulates Jupyter Notebook environments.

ReadMcpResource

Ingests specific external DB or API data.

Read

Reads file contents efficiently.

RemoteTrigger

Fires remote webhooks for CI/CD integrations.

SandboxStatus

Checks the health of the E2B MicroVM.

ScaffoldProject

Autonomously generates full-stack architectures, premium UI foundations, and mobile apps.

SendMessage

Communicates data between parallel sub-agents.

Skill

Registers custom developer capabilities.

StartPreview

Boots the dev server to preview the app live.

SyncRepoSkills

Synchronizes custom registered skills.

TodoWrite

Generates task milestones for long operations.

ToolSearch

Searches for available external APIs.

WebFetch

Extracts text and markdown from public URLs.

WebSearch

Performs a Google Search to read latest docs.

Write

Creates entirely new files in the sandbox.

Model Context Protocol (MCP) Integrations

Through Clawder's Marketplace, the AI can seamlessly load dynamic MCP servers. It uses ListMcpResources and ReadMcpResource to securely authenticate and interface with external platforms, dramatically expanding its capabilities beyond simple code editing.

Natively Supported Marketplace Plugins Clawder comes pre-configured with 17 enterprise MCP plugins. Users can connect their API keys directly in the chat UI to grant the AI access to:
  • Supabase
  • GitHub
  • PostgreSQL
  • Puppeteer (Browser Automation)
  • Brave Search
  • Stripe
  • Figma
  • Redis
  • MongoDB
  • Slack
  • Linear
  • Notion
  • Google Drive
  • Firebase
  • PayPal
  • Postman
  • 21st.dev (UI Components)

For example, connecting the Supabase MCP allows the AI to autonomously call list_tables, execute_sql, and deploy_edge_function, meaning it can design your PostgreSQL architecture without ever leaving the chat interface.

Slash Commands

Users can command the AI using specialized chat inputs. We offer exactly 15 slash commands:

Server Installation & Setup

Deploying Clawder requires a Virtual Private Server (VPS) to host the Node.js backend and Next.js frontend.

VPS Requirements

Server Prep & Dependencies

Connect to your VPS via SSH as root and run the following commands sequentially.

# 1. Update system packages
sudo apt update && sudo apt upgrade -y
sudo apt install -y curl wget git unzip build-essential

# 2. Install Node.js v22
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
sudo apt install -y nodejs

# 3. Install PM2 globally (Process Manager)
sudo npm install -g pm2

# 4. Install Nginx and Certbot (for reverse proxy and SSL)
sudo apt install -y nginx certbot python3-certbot-nginx

Upload your clawder-Codester-release.zip file to your server and unzip it:

unzip clawder-Codester-release.zip -d ~/web-agentic
cd ~/web-agentic

Environment Variables (.env) & API Keys

Create a .env file in your project folder. This is the master configuration for your AI keys, Database, and Sandbox. Below is the full template, followed by detailed instructions on where to acquire each key.

# ─── AI Providers ───
GOOGLE_API_KEY=your_key
ANTHROPIC_API_KEY=your_key
OPENAI_API_KEY=your_key

# ─── Supabase Configuration ───
NEXT_PUBLIC_SUPABASE_URL=https://your-project.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_anon_key

# Backend (Private - DO NOT EXPOSE IN BROWSER)
# Required for user billing and lifetime token tracking
SUPABASE_SERVICE_ROLE_KEY=your_service_role_key

# ─── Server & Sandbox ───
PORT=3001
NEXT_PUBLIC_BACKEND_URL=https://clawder.eu

# CRITICAL: WORKSPACE_DIR defines the absolute path on your VPS where the AI writes local temporary files.
# If your project is at /home/monzedayoub/web-agentic, set it to exactly that.
WORKSPACE_DIR=/home/monzedayoub/web-agentic

SANDBOX_PROVIDER=e2b
E2B_API_KEY=your_e2b_key

# ─── Stripe Configuration ───
STRIPE_SECRET_KEY=sk_live_...
# Note: Connect your Stripe webhook in the Stripe Dashboard to: https://yourdomain.com/api/stripe/webhook
STRIPE_WEBHOOK_SECRET=whsec_...

# ─── Cloudflare Turnstile (Captcha) ───
NEXT_PUBLIC_TURNSTILE_SITE_KEY=your_site_key

# ─── Resend (Transactional Emails) ───
RESEND_API_KEY=your_resend_key
RESEND_FROM_EMAIL=Clawder 

API Key Acquisition Guide

We've broken down exactly where to source every required variable for your .env file.

AI Providers

Supabase (Auth & DB)

Navigate to Project Settings > API:

  • Copy Project URLNEXT_PUBLIC_SUPABASE_URL
  • Copy anon public key → NEXT_PUBLIC_SUPABASE_ANON_KEY
  • Copy service_role secretSUPABASE_SERVICE_ROLE_KEY
  • CRITICAL REDIRECTION: Go to Authentication > URL Configuration. Change the Site URL and Redirect URIs from localhost:3000 to your production domain (e.g., https://your-domain.com/**).

Google OAuth Login

  • Go to the Google Cloud Console. Create OAuth 2.0 Client IDs.
  • Set Authorized Redirect URI to:
    https://[YOUR_REF].supabase.co/auth/v1/callback
  • Copy the generated Client ID and Client Secret. Paste them into Supabase Dashboard → Authentication > Providers > Google.

GitHub OAuth Login

  • Go to GitHub Developer Settings > OAuth Apps.
  • Set Authorization callback URL to:
    https://[YOUR_REF].supabase.co/auth/v1/callback
  • Generate a new Client Secret. Paste the Client ID and Secret into Supabase Dashboard → Authentication > Providers > GitHub.

Cloudflare Turnstile

  • Get Site Key from Cloudflare for NEXT_PUBLIC_TURNSTILE_SITE_KEY.
  • CRITICAL DATABASE LINK: You must also link Turnstile to your database! Go to Supabase Dashboard → Authentication > Security.
  • Enable CAPTCHA protection, select Cloudflare Turnstile, and paste your Cloudflare Secret Key there to reject bot signups.

E2B Sandboxing

Clawder runs autonomous code in secure microVMs.

  • Create an account at E2B.dev →
  • Generate a new API key and paste it as E2B_API_KEY.

Stripe Billing

  • Get Secret Key from API Keys → for STRIPE_SECRET_KEY
  • Create a Webhook pointing to:
    https://yourdomain.com/api/stripe/webhook
  • Select the following 4 events to listen to:
    checkout.session.completed invoice.paid customer.subscription.updated customer.subscription.deleted
  • Copy the generated Signing Secret for STRIPE_WEBHOOK_SECRET

Resend Emails

  • Get API key from Resend → for RESEND_API_KEY
  • Verify your domain and set RESEND_FROM_EMAIL to your custom email address.

Supabase Database Setup

We have provided a professional SQL export in your zip file. This cleanly sets up your architecture without any legacy user data. Execute this step immediately after creating your Supabase project during the API Keys setup.

  1. Log into your Supabase Dashboard and navigate to the SQL Editor.
  2. Open database_schema.sql from your download, copy the contents, paste it into the editor, and hit Run. This builds your RLS policies and core tables.
  3. Next, open plans_data.sql, paste it, and hit Run. This populates your default pricing tiers.

Payments & Pricing Plans

Clawder is designed to be completely dynamically driven by your Supabase database. You do not need to manually create Stripe products or edit React code to change your subscription tiers, features, or limits!

Fully Automated Stripe Provisioning

When setting up your plans table in Supabase, leave the stripe_product_id and stripe_price_id columns completely empty.

Once a user attempts to subscribe to a plan for the very first time, Clawder's backend engine will automatically communicate with Stripe, dynamically provision the exact Product and recurring Price based on your database settings, and securely save the generated IDs back into your database. It is 100% hands-off.

Editing Features & Limits

To change what is displayed on the frontend Pricing page or adjust the AI usage limits, simply open your Supabase Dashboard, go to the Table Editor, and edit the plans table.

The features Array

This column stores an array of text strings (e.g., ["Unlimited Chat", "Advanced Analytics", "Priority Support"]). Whatever you put in this array is immediately fetched and beautifully rendered on the live Pricing page. There are absolutely no code changes required.

The limits JSONB

This column strictly dictates exactly what AI models and capabilities the user has access to. It must be valid JSON.

{
  "modes": [
    "ask",
    "agent",
    "swarm"
  ],
  "models": [
    "gemini-2.5-flash",
    "gemini-2.5-pro",
    "claude-opus-4-7",
    "claude-sonnet-4-6",
    "gpt-5.4-pro",
    "gpt-5.4-mini"
  ],
  "custom_agents": true,
  "can_download_zip": true
}
Pro Tip: Customizing Plans Because everything is dynamic, you can create entirely new subscription tiers (like an "Enterprise" or "Student" plan) simply by adding a new row to the Supabase plans table. It will instantly appear on your website!

Build & Launch

With the database ready and your environment variables securely in place, it's time to build the application.

First, install all required dependencies (including Playwright for the autonomous web-browsing agents), then compile the Next.js app, and start the PM2 daemon to keep it online forever:

# 1. Install core dependencies
npm install

# 2. Install Playwright browser dependencies for autonomous agents
npx playwright install
npx playwright install-deps

# 3. Build the Next.js production bundle
npm run build

# 4. Boot the backend and frontend using PM2
pm2 start npm --name "clawder-backend" -- run dev:server
pm2 start npm --name "clawder-frontend" -- start

# 5. Save the PM2 state to resurrect on server reboot
pm2 save
pm2 startup

Customization & SEO

Clawder is designed to be completely white-labeled. You own the code, so you can transform it into your own brand.

Vibe Coding (AI-Assisted Customization)

You don't need to be an expert developer to modify this application. The codebase is strictly typed and built with Next.js & TailwindCSS, making it incredibly easy for modern "Vibe Coding" AI tools to understand and modify it for you. We highly recommend using these tools to tweak the design, rewrite landing page copy, or even add entire new features simply by asking in plain English:

Cursor IDE →

The world's most popular AI code editor. Simply open the folder in Cursor and press CMD+I to tell the AI to "Change the primary color to red" or "Rewrite the landing page hero section."

Antigravity →

Google's advanced agentic coding assistant. Perfect for massive architectural changes, debugging complex backend issues, or deeply investigating the infrastructure.

Claude Code →

Anthropic's powerful CLI tool. Run it directly in your terminal to instantly analyze the codebase and have Claude rewrite UI components or fix bugs autonomously.

Manual Branding & SEO Setup

If you prefer to make modifications manually, here are the critical files you need to update to launch your SaaS:

Search Engine Optimization

  • Open src/app/layout.tsx.
  • Locate the Next.js export const metadata object at the top of the file.
  • Change the title and description to your own SaaS name.
  • Update the OpenGraph image (og:image) to ensure rich link previews on Twitter and Discord.

UI & Branding

  • Replace public/logo.png and public/favicon.ico with your own brand assets.
  • Open tailwind.config.ts to modify the global color palette (e.g., changing primary colors).
  • Update the landing page copy in src/app/page.tsx to fit your marketing strategy.

Nginx & Architecture Endpoints

Clawder requires Nginx to act as a reverse proxy, forwarding traffic dynamically to either the Frontend (port 3002) or Backend (port 3001).

Frontend Route (/)

Serves the Next.js application on port 3002 and aggressively caches static chunks.

Backend API (/api/*)

Routes to Express on port 3001. Handles REST integrations and server-side logic.

WebSockets (/ws)

Crucial. Connects to 3001 to stream real-time AI responses using Upgrade: websocket.

Webhooks (/api/stripe/webhook)

Direct pipeline for Stripe events. Unbuffered to prevent signature verification failures.

1. DNS Setup (Pointing Your Domain)

Before configuring Nginx, you must point your domain name to your VPS IP address. Log into your domain registrar (e.g., Namecheap, Cloudflare, or GoDaddy) and configure your DNS settings as follows:

Type Name / Host Value / Points To Purpose
A Record @ (or blank) YOUR_VPS_IP Points the root domain (e.g., yourdomain.com)
A Record www YOUR_VPS_IP Points the www subdomain (e.g., www.yourdomain.com)

For beginners: Need step-by-step visual help? Read this official guide from Cloudflare on How to create DNS records.

2. Nginx Server Block

Below is the "Virgin" Nginx configuration (without SSL enabled yet). Create this file at /etc/nginx/sites-available/yourdomain.com, link it to sites-enabled, and restart Nginx.

CRITICAL DOMAIN SETUP: On line 23 of the config below, you MUST replace server_name clawder.eu www.clawder.eu; with your actual domain names. If you only want to support a single domain without the "www", just enter it once (e.g., server_name yourdomain.com;).
upstream backend {
    server localhost:3001;
    keepalive 32;
}

upstream frontend {
    server localhost:3002;
    keepalive 32;
}

proxy_cache_path /var/cache/nginx/clawder
    levels=1:2
    keys_zone=clawder_static:10m
    max_size=1g
    inactive=60m
    use_temp_path=off;

map $http_upgrade $connection_upgrade {
    default upgrade;
    ''      close;
}

server {
    listen 80;
    server_name clawder.eu www.clawder.eu; # Replace with your domain

    client_max_body_size 50M;
    gzip on;
    gzip_types text/plain text/css application/json application/javascript image/svg+xml application/xml font/woff2;

    location = /api/stripe/webhook {
        proxy_pass http://backend/api/stripe/webhook;
        proxy_http_version      1.1;
        proxy_set_header Connection "";
        proxy_request_buffering off;
        proxy_buffering         off;
        proxy_set_header Host              $host;
        proxy_set_header X-Real-IP         $remote_addr;
        proxy_set_header X-Forwarded-For   $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }

    location /api/ {
        proxy_pass http://backend/api/;
        proxy_http_version      1.1;
        proxy_set_header Connection "";
        proxy_set_header Host              $host;
        proxy_set_header X-Real-IP         $remote_addr;
        proxy_set_header X-Forwarded-For   $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_read_timeout    300s;
        proxy_connect_timeout 300s;
    }

    location /ws {
        proxy_pass http://backend/ws;
        proxy_http_version 1.1;
        proxy_set_header Upgrade           $http_upgrade;
        proxy_set_header Connection        $connection_upgrade;
        proxy_set_header Host              $host;
        proxy_set_header X-Real-IP         $remote_addr;
        proxy_set_header X-Forwarded-For   $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_read_timeout  86400s;
        proxy_send_timeout  86400s;
        proxy_buffering     off;
        tcp_nodelay         on;
    }

    location /_next/static {
        proxy_pass http://frontend/_next/static;
        proxy_http_version 1.1;
        proxy_set_header Connection "";
        proxy_cache        clawder_static;
        proxy_cache_valid  200 60m;
        proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504;
        add_header Cache-Control "public, max-age=31536000, immutable";
        add_header X-Cache-Status $upstream_cache_status;
    }

    location / {
        proxy_pass http://frontend;
        proxy_http_version 1.1;
        proxy_set_header Upgrade           $http_upgrade;
        proxy_set_header Connection        $connection_upgrade;
        proxy_set_header Host              $host;
        proxy_set_header X-Real-IP         $remote_addr;
        proxy_set_header X-Forwarded-For   $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
}
Enable SSL Once Nginx is running, simply execute sudo certbot --nginx -d clawder.eu -d www.clawder.eu to automatically generate your SSL certificates and lock the entire site to HTTPS.

Customization & SEO

Clawder is designed as a highly malleable white-label solution. You have full access to change the aesthetics and search-engine visibility.

Changing App Styles

Open src/app/globals.css. Simply modify the Tailwind v4 root variables at the top of the file (like --primary and --background) to instantly reskin the entire platform with your brand colors.

Changing Logos

Replace public/images/logo.png and public/favicon.ico with your own brand assets. The frontend React components automatically source from this directory.

Modifying SEO

Open src/app/layout.tsx. Locate the export const metadata object. Here you can rewrite the Title, Description, and Keywords to organically rank for your specific niche.

OpenGraph Assets

Replace public/og-image.jpg. This is the preview image that appears when your users share your website on Twitter, Discord, or LinkedIn.

Support & Contact

Thank you for purchasing Clawder! We are deeply committed to providing you with the best possible experience. Please review our support channels and policies below.

Installation Assistance

Need help deploying to your VPS or configuring Nginx? Our team is available to guide you through the process.

Open Support Ticket →

General Inquiries

For bug reports, feature requests, or any other questions not related to installation, please reach out via email.

team@monzed.com →
Codester Item Support Policy Please note that standard Codester support covers bugs, installation issues, and general product questions. It does not cover custom feature development, massive codebase modifications, or 3rd-party plugin integrations. However, you are fully authorized to use AI tools like Cursor or Antigravity to build custom features on top of Clawder!

Additional Services: Professional Installation, Custom Rebranding, Custom Functionalities, and 3rd-Party Integrations are charged separately. Please contact our support team if you would like us to handle the full deployment, customize the app for your brand, or build entirely new features.

Updates & Changelog

v1.0.0 — Initial Release

How to Install Future Updates

As a Codester customer, you receive free lifetime updates. When a new version is released, you can download it directly from your Codester account. Upgrading is designed to be seamless.

  • Every update will include an Update Instructions document detailing exactly what changed.
  • You will simply drag and drop the provided updated files into your VPS to overwrite the old files.
  • If the update requires database changes, we will attach a specific SQL script for you to run in your Supabase SQL Editor.
Safe Upgrades Applying future updates will never affect your live platform if you already have existing users, and it will not mess with any custom UI designs or CSS branding you have already created.
Need help?

How can we help?

Our dedicated engineering team at Monzed is standing by to ensure your deployment is flawless.

Need help with installation Rebranding service Others
Or email us directly at:
team@monzed.com