# Install oric

These examples use published, verified artifacts. Keep signing keys on your server.

<span id="install-tab-script"></span><span id="install-panel-script"></span>

## Script tag

The relay is a route on your server. It signs calls as your registered app.

```html
<script src="https://cdn.comms.id/oric/1.2.0.js" integrity="sha384-AHmBxVYCQDXqnwMxxte20TLMYMgReirt0VC4hdhBLGyHjJuH0ye28LuGcFvSCT26" crossorigin="anonymous"></script>
<comms-id-oric relay="/api/comms-id/oric"></comms-id-oric>
```

<span id="install-tab-react"></span><span id="install-panel-react"></span>

## React

```sh
pnpm add @comms-id/oric-react@0.2.2 @comms-id/oric@0.5.0
```

```tsx
import { createOricBrowserClient } from "@comms-id/oric/browser";
import { OricLookup } from "@comms-id/oric-react";

const client = createOricBrowserClient({ relayUrl: "/api/comms-id/oric" });
export const Example = () => <OricLookup client={client} />;
```

<span id="install-tab-sdk"></span><span id="install-panel-sdk"></span>

## Server SDK

```sh
pnpm add @comms-id/oric@0.5.0
```

```ts
import { createOricClient } from "@comms-id/oric/server";
const client = createOricClient({
  clientId: process.env.COMMS_ID_CLIENT_ID!,
  privateJwk: JSON.parse(process.env.COMMS_ID_PRIVATE_JWK!),
});
```

See the operation reference for request, response and command-line examples.

<span id="install-tab-relay"></span><span id="install-panel-relay"></span>

## Relay

Install the server relay into your relying-party app:

```sh
pnpm dlx comms-id add oric-relay
```

<span id="install-tab-api"></span><span id="install-panel-api"></span>

## Agent tools

Product tools are served at https://mcp.comms.id. The documentation MCP serves
documentation only; it does not execute product operations.

## Operations

### search

[Read the search API reference](/docs/reference/oric/oric/oric-search).

### lookup

[Read the lookup API reference](/docs/reference/oric/oric/oric-lookup).

## Upgrading

[Upgrade guide](/docs/reference/oric/upgrade).
