Statespace: Build Interactive Web Apps for OpenClaw Agents with Markdown

✍️ OpenClawRadar📅 Published: March 16, 2026🔗 Source
Statespace: Build Interactive Web Apps for OpenClaw Agents with Markdown
Ad

Statespace is a free and open-source framework for building and sharing interactive web applications specifically for OpenClaw agents. It addresses the challenge of building, spinning up, and sharing applications for agents to use.

How It Works

You build apps by writing Markdown web pages that contain three key elements:

  • tools: Constrained CLI commands that agents can call. These are defined with regex constraints on inputs and run server-side to avoid shell interpretation and prompt injection.
  • components: Live data that renders on page load.
  • instructions: Context that guides the agent on how to interact with the page.

Once served or deployed, OpenClaw agents interact with these apps over HTTP, similar to an API.

Example Implementation

The source provides this example Markdown structure:

---
tools:
- [grep, -r, { }, ./docs]
- [psql, -c, { regex: "^SELECT\\b.*" }]
---
```component
psql -c "SELECT count(*) FROM users"
```
# Instructions
- Search the documentation with grep
- Query the database for user metrics (read-only)
- See [reports](src/reports.md) for more workflows
Ad

Key Features

  • Markdown-based: No SDKs, dependencies, or complex setup required.
  • Scalable by adding pages: Each new topic or task can be a new Markdown page.
  • Shareable via URL: Every app gets a URL that can be pasted into prompts or instructions.
  • Agent-agnostic: Works with any agent configuration that has HTTP access.
  • Safety features: Includes regex constraints on tool inputs and server-side tool execution.

For deployment, there's also a hosted version available that makes the process easier.

📖 Read the full source: r/openclaw

Ad

👀 See Also