# Harness as a Service

> Source: <https://www.harnessasaservice.dev/>
> Published: 2026-09-12 01:03:03+00:00

# Harness as a Service.

**Define your agent in TypeScript. Deploy it like a serverless function.** We run the loop, Linux VMs, and durable sessions.

TS agent.ts

``` js
import { useInput, useModel } from "@opencomputer/agent";

export default function Agent() {
  const input = useInput();

  // Choose your model. Keep your agent.
  useModel("anthropic/claude-sonnet-4.6");

  return `Help with this request: ${input.text ?? "Say hello."}`;
}
```

You write the behavior. We run the harness.

[Model options ↗](https://docs.opencomputer.dev/agents/models)
Built something useful? Share it with 

`oc-template.toml`.
