Infrastructure for agent products

Downcity helps creatorskeep building agent products.

Downcity provides the agent runtime, tools, accounts, usage, and payments to bring your ideas to users—with a reusable foundation for long-term operation and your next creation.

Products

On your desktop. In your terminal. Alongside your browser.

Desktop and Extension interfaces use demo data. Terminal shows actual CLI help output.

Infrastructure

Your product owns the experience. Downcity supplies the foundation.

An agent product needs more than a model call. It needs somewhere to execute, tools to act, context to keep, and services for the people who use it. Compose those pieces once, then carry what fits into your next launch.

Agent Harness

Give your agent the tools to act.

Sessions, context, workspaces, and approvals keep work moving. Add the tools your agent needs through Powers.

An agent at work. A foundation that stays with it.
Product infrastructure

A working agent is a start. A product needs more.

Connect models through Federation and reuse services for identity, credits, usage, and payments. Keep the product logic and the user experience in your application.

Federation

One place to connect your models.

Configure providers and model catalogs, expose model access through a shared service, and track technical usage. Embedded SDK applications can also inject a model directly.

Model & service infrastructure
Accounts

Give users an identity.

Reuse login and user identity across your product services.

Read the docs
Credits

Define how usage is funded.

Manage primary and ephemeral credit cards, top-ups, consumption, and accounting records.

Read the docs
Usage

See where resources go.

Bring AI technical usage and Credits consumption into one user-level view.

Read the docs
Payments

Connect payment to your product.

Create payment orders and Checkout flows, handle webhooks, and connect paid orders to your credit top-up policy.

Read the docs
Build again

A different product. A familiar foundation.

Different products, growing in their own way. Share models, identity, and services through Federation, so the next build starts with a foundation already in place.

Independent products, sharing models, identity, and services.

Agent & Session

Agent holds execution capabilities. Session carries the conversation and its execution state.

City

Host agents and expose them through HTTP/RPC. Compose workspace and Power resources for your application.

Federation

Provide shared model access, identity, service routing, and product services to connected applications.

Build with Downcity

Start where your product needs you.

Try the runtime through CLI or Desktop, embed agent execution through the SDK, or start with the services your backend needs.

Local agent quickstart
Agent SDK · TypeScript

Excerpt: model is a configured model instance. Add Shell for sandboxed commands; this example uses workspace file tools.

import { Agent } from "@downcity/agent";
import { Workspace } from "@downcity/city";

const workspace = new Workspace({
  id: "project",
  path: process.cwd(),
});
const agent = new Agent({
  id: "project-helper",
  model,
});

try {
  const session = await agent.sessions.create({ workspace });
  const turn = await session.prompt({
    actor: { kind: "user", user_id: "local" },
    query: "Summarize this project.",
  });
  console.log((await turn.finished).text);
} finally {
  await agent.dispose();
}

Agent SDK

Embed local execution or use RemoteAgent to work with server-side sessions.

City SDK

Compose the host and connect agents, shared resources, and service infrastructure.

Services

Add accounts, Credits, usage, and payment to your product backend.

UI SDK

Reuse React and Tailwind interface primitives in your own application.

Apache 2.0

Open source. Yours to build on.

Inspect the runtime, adapt the infrastructure, and deploy it on your own terms. Carry the code and the capabilities you need into what comes next.