Skip to Content
Clerk logo

Clerk Docs

Ctrl + K
Go to


Clerk's Go SDK is a thin wrapper over the Clerk Backend API. Add the following import statement:

import ""

Go doesn't automatically add the module. You can explicitly add it with:

$ go get

Clerk client

Now, you can create a Clerk client by calling the clerk.NewClient function. This function requires your Clerk secret key. If you are signed into your Clerk Dashboard, your keys should become visible by clicking on the eye icon. You can also retrieve your Clerk secret key from the API Keys page in the Clerk Dashboard.

With your Clerk secret key, create a Client object to use the various services Clerk provides.

client, err := clerk.NewClient({{secret}}) if err != nil { // handle error }

What did you think of this content?

Clerk © 2023