rivetkit-client-swift

Connect Swift clients to Rivet Actors using RivetKitClient.

18|7|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/rivet-dev/skills --skill rivetkit-client-swift
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rivetkit-client-swift
Source: https://github.com/rivet-dev/skills/tree/main/rivetkit-client-swift
Command: npx skills add https://github.com/rivet-dev/skills --skill rivetkit-client-swift

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides guidance for Swift developers to connect to Rivet Actors using RivetKitClient, enabling seamless creation of actor handles, action invocation, and connection management.

Core Features & Use Cases

  • Get or create actor handles and resolve actor IDs for interactions with Rivet Actors.
  • Call typed actions on actors and manage both stateless and stateful communication (including real-time event streams).
  • Integrate RivetKitClient into Swift applications and manage endpoints, namespaces, and authentication to drive Rivet workflows.

Quick Start

  • Install RivetKit via Swift Package Manager and import RivetKitClient.
  • Create a ClientConfig with an endpoint and optional namespace/token, then instantiate RivetKitClient, obtain a handle with getOrCreate, and perform actions using handle.action with typed results.

Frequently Asked Questions about rivetkit-client-swift

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I connect a Swift application to Rivet Actors?

To connect a Swift application to Rivet Actors, install the RivetKit package via Swift Package Manager, configure a ClientConfig with an endpoint and optional namespace/token, then instantiate RivetKitClient to manage connections and invoke actions.

How do I get or create actor handles in Swift for Rivet interactions?

You get or create actor handles in Swift by calling the getOrCreate method on your instantiated RivetKitClient, which resolves actor IDs and enables subsequent typed action invocations on those actors.

Can I manage stateful real-time event streams with RivetKitClient in Swift?

Yes, RivetKitClient supports managing both stateless and stateful communication in Swift, including real-time event streams, by invoking typed actions on actor handles obtained through the client connection.

What dependencies are required to build a Swift client for Rivet?

Building a Swift client for Rivet requires adding the RivetKit package dependency via Swift Package Manager and importing RivetKitClient to properly configure endpoints, namespaces, and authentication tokens.

How does invoking typed actions on Rivet Actors work in Swift?

Invoking typed actions in Swift involves obtaining an actor handle using getOrCreate, then calling handle.action with typed results to execute specific functions and manage communication with the connected Rivet Actors.