> For the complete documentation index, see [llms.txt](https://ais-organization-2.gitbook.io/ai-trader/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ais-organization-2.gitbook.io/ai-trader/docs/run-an-node.md).

# Run An Node

### Run a local testnet from `AiTrader-core`[​](https://aptos.dev/guides/local-testnet-dev-flow#run-a-local-testnet-from-aptos-core) <a href="#run-a-local-testnet-from-aptos-core" id="run-a-local-testnet-from-aptos-core"></a>

Pull and go into AI Trader`-core`:

```
git clone git@github.com:aitrade-labs/aitrade-core.git ~/aitrader-core && cd ~/aitrader-core
```

Run a local testnet:

```
cargo run -p aitrader -- node run-local-testnet --with-faucet --faucet-port 8081 --force-restart --assume-yes
```

You may add the `--release` flag after `cargo run` if you want to build a release version of the CLI for running the local testnet.

You are now running a local [testnet](/ai-trader/test-net.md) built from aitrader`-core` main.

{&#x20;

"name": <mark style="color:red;">"project"</mark>,&#x20;

"version": <mark style="color:red;">"1.0.0"</mark>,&#x20;

"main": <mark style="color:red;">"index.js"</mark>,

&#x20;"license": <mark style="color:red;">"AIT"</mark>,&#x20;

"dependencies": {

&#x20;"aitrade": <mark style="color:red;">"../a/core/ecosystem/typescript/sdk/"</mark>&#x20;

}&#x20;

}

| Parameter                                    | Value                                                                                    |
| -------------------------------------------- | ---------------------------------------------------------------------------------------- |
| DATA\_TRANSPORT\_LAYER\_\_NODE\_ENV          | production                                                                               |
| DATA\_TRANSPORT\_LAYER\_\_BSC\_NETWORK\_NAME | Testnet                                                                                  |
| DATA\_TRANSPORT\_LAYER\_\_ADDRESS\_MANAGER   | 0x4238E5Ccc619dCC8c00ADE4cfc5d3D9020b24898                                               |
| DATA\_TRANSPORT\_LAYER\_\_SERVER\_HOSTNAME   | localhost                                                                                |
| DATA\_TRANSPORT\_LAYER\_\_SERVER\_PORT       | 8989                                                                                     |
| DATA\_TRANSPORT\_LAYER\_\_SYNC\_\_F          | false                                                                                    |
| DATA\_TRANSPORT\_LAYER\_\_L1\_RPC\_ENDPOINT  | Get an endpoint from a service provider (opens new window)unless you run a node yourself |
| DATA\_TRANSPORT\_LAYER\_\_SYNC\_\_T          | true                                                                                     |
