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

# Setup

**For this setup example, we will use Node.js along with the Visual Studio Code IDE or your preferred IDE.**&#x20;

1. Create a new project directory: Open your terminal and navigate to the directory where you want to create your project. Create a new folder for your project.<br>

   <pre><code><strong>mkdir mintTest
   </strong></code></pre>
2. Initialize a new Node.js project: Navigate into the new directory you just created and run initiation.<br>

   ```
   cd mintTest
   npm init -y
   ```
3. Install required packages: In your project directory we will now install the `stas` and `bsv` libraries:<br>

   ```
   npm install bsv
   npm install stas-sdk
   ```
4. Create an entry point file: In your project directory, create a new file called `index.js`. This will serve as the entry point for your application, where you can import the libraries and write your code.<br>
5. Import required libraries: In your `index.js` file, import the required libraries using the `require` function. Here's an example:

   ```
   const stas = require('stas-sdk');
   const bsv = require('bsv');
   ```

{% hint style="info" %}
Alternatively, you can retrieve the open source code for the STAS SDK from GitHub <https://github.com/stas-token/stas-sdk>
{% endhint %}

{% hint style="success" %}
That concludes the setup! you are now ready to start writing code to mint your first STAS tokens!
{% 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.stastoken.com/getting-started/setup.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.
