# Add Keyshade to your project

Initialize keyshade in your local project:

1. Run `keyshade init`

   ```shell
   keyshade init
   ```
2. Select the workspace
3. Select the project
4. Enter the private key that you downloaded after creating the project
5. Select the environment

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FklyYIOuyG5AKyh2FIsOK%2Fuploads%2FwA0awuRV5FEDUgSsgzJe%2Fkeyshade%20init.mp4?alt=media&token=3c717427-9866-48dc-b850-6aa05f2819b2>" %}

Alternatively, you can do all of that in a single command:

```shell
keyshade init --workspace <workspace slug> --project <project slug> --environment <environment slug> --private-key <private key>
```

Once done, it will generate a `keyshade.json` file in your project root. This contains all the information the CLI needs to connect to your keyshade project.

```json
{
  "workspace": "my-workspace-630",
  "project": "my-app-3",
  "environment": "default-223",
  "quitOnDecryptionFailure": false
}
```


---

# 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://docs.keyshade.io/getting-started/add-keyshade-to-your-project.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.
