# Setup Provider

City uses a **provider-based KYC model**. The `CityKycClient` defines the verification interface, while concrete providers handle the underlying API calls. This means you can swap or extend providers without changing your application code.

`SumsubKycProvider` is the current default provider.

```
import { CityKycClient, SumsubKycProvider } from "@cityprotocol/core";

const provider = new SumsubKycProvider({
  appToken: process.env.SUMSUB_APP_TOKEN!,
  secretKey: process.env.SUMSUB_SECRET_KEY!,
});

const kycClient = new CityKycClient({ provider });
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://city-protocol.gitbook.io/docs/software-development-kit/kyc/setup-provider.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
