# Function createClient

- createClient<A extends Registry<any>>(
  endpointOrConfig?:
  | string
  | {
  disableMetadataLookup?: boolean;
  encoding?: "json"
  | "cbor"
  | "bare";
  endpoint?: string;
  getUpgradeWebSocket?: GetUpgradeWebSocket;
  headers?: Record<string, string>;
  namespace?: string;
  runnerName?: string;
  token?: string;
  },
  ): Client<A>

  Creates a client with the actor accessor proxy.

  #### Type Parameters

  - A extends Registry<any>

  #### Parameters

  - `Optional` endpointOrConfig:
    | string
    | {
    disableMetadataLookup?: boolean;
    encoding?: "json"
    | "cbor"
    | "bare";
    endpoint?: string;
    getUpgradeWebSocket?: GetUpgradeWebSocket;
    headers?: Record<string, string>;
    namespace?: string;
    runnerName?: string;
    token?: string;
    }

  #### Returns Client<A>

  - Defined in rivetkit/dist/tsup/client/mod.d.ts:15