# Foundry Kitchen

Since Kitchen Layer is using an EVM with some custom precompiles you need to install `foundry-kicthen` in order to be able to use kitchen precompiles.

1 - Clone kicthen foundry repo:

```
git@github.com:kitchen-layer/foundry.git

or

https://github.com/kitchen-layer/foundry.git
```

2 - Switch to the kitchen-precompiles branch

```
git switch kitchen-precompiles
```

3 - Install foundry-kitchen

```
cargo build --bin forge-kitchen --release mv target/release/forge-kitchen ~/.cargo/bin
```

3.1 - (Optional) create some alias in your .zshrc

```
alias fkb="~/.cargo/bin/forge-kitchen build"
alias fkt="~/.cargo/bin/forge-kitchen test"
```

4 - Using template Using a Template is the simplest way to create your project If you want to set it up by yourself please go to Step 5

```
https://github.com/kitchen-layer/foundry-kitchen
```

And click on the `use Template` button, name your repo and you will be fully setup directly:&#x20;

<figure><img src="/files/nhZk08VUaZeevl2epih4" alt=""><figcaption></figcaption></figure>

5 - Create your foundry-kitchen repository If you want to create a folder:

```
forge-kitchen init name-of-your-repo
```

If you are already in the folder you want to use foundry-kitchen

```
forge init .
```

To ensure that everything is working well you should run the following command:

```
forge-kitchen build
```

If the output is looking like this, congrats everything is well installed:\
![](/files/rky7KI9LKDmJgKL6OdbP)


---

# 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://kitchen-layer.gitbook.io/kitchen-layer-docs/developer-docs/foundry-kitchen.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.
