---
title: "Actor Configuration"
description: "This page documents the configuration options available when defining a RivetKit actor. The actor configuration is passed to the `actor()` function."
skill: true
---

import ActorConfigSchema from "@/components/docs/ActorConfigSchemaClient.astro";



## Basic Example

```typescript
import { actor, setup } from "rivetkit";

const myActor = actor({
  state: { count: 0 },

  actions: {
    increment: (c) => {
      c.state.count++;
      return c.state.count;
    },
  },
  options: {
    actionTimeout: 15_000,
  }
});

const registry = setup({
  use: { myActor },
});
```

## Configuration Reference

<ActorConfigSchema />

## Related

- [Registry Configuration](/docs/general/registry-configuration): Configure the RivetKit registry
- [State](/docs/actors/state): Managing actor state
- [Actions](/docs/actors/actions): Defining actor actions
- [Lifecycle](/docs/actors/lifecycle): Actor lifecycle hooks
