> For the complete documentation index, see [llms.txt](https://docs.bloq.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bloq.com/readme/create-client-keys.md).

# Create Client Keys

{% hint style="danger" %}
**WARNING**

* Client keys are sensitive information. You should avoid sharing or exposing them and always keep them safe.
* Keep in mind that once you generate a client key, you will not be able to see the Client Secret \*\*\*\* again.
* Bloq is unable to help recover / retrieve generated client keys.
  {% endhint %}

### Using the CLI

The CLI has the `'bcl client-keys'` command with a set of arguments that lets you create, list, and revoke client keys.

To create a new pair of client keys, run `bcl client-keys create` on a terminal. Remember that you first need to be authenticated (with the `bcl login` command) into Bloq to perform this operation.

```shell
bcl client-keys create
```

```console
ℹ Creating new pair of client keys for user jon@doe.com.
? Do you want bcl to store your tokens locally for future usage? Yes
✔ Generated new client keys:
   * Client ID:  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
   * Client Secret:  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

ℹ Client secret was copied to clipboard.
WARN  You will be not able to see your client secret again. Remember to copy it and keep it safe.
```

Copy the **Client ID** and **Client Secret** and keep them safe. You now have everything to start using Bloq Services.

{% hint style="success" %}
**TIP**

* The CLI will ask you to store those keys locally. We recommend for you to store the keys locally as you will need them in order to use Bloq services through the CLI.
* You can have multiple pairs of client keys. Use `bcl client-keys` to list all available keys.
  {% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.bloq.com/readme/create-client-keys.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
