2025-09-19 15:02:42 +02:00
# (0.0.1)Quick Start
2024-08-16 12:57:40 +03:00
2024-09-27 22:31:39 +03:00
To run Codex through this guide we would need to perform the following steps:
2025-09-19 15:02:42 +02:00
- [Review the disclaimer ](../codex/disclaimer )
2024-09-27 22:31:39 +03:00
- [Get Codex binary ](#get-codex-binary )
- [Run Codex ](#run-codex )
- [Interact with Codex ](#interact-with-codex )
2025-09-19 15:02:42 +02:00
## (0.0.1)Get Codex binary
2024-09-27 22:31:39 +03:00
2025-09-19 15:02:42 +02:00
For quick a start we will use precompiled binaries from [GitHub release page ](https://github.com/codex-storage/nim-codex/releases ). If you prefer to compile from the sources, please check [Build Codex ](./build ).
2024-09-27 22:31:39 +03:00
Please follow the steps for your OS from the list:
- [Linux/macOS ](#linux-macos )
- [Windows ](#windows )
2025-09-19 15:02:42 +02:00
### (0.0.1)Linux/macOS
2024-09-27 22:31:39 +03:00
2024-10-15 10:54:59 +03:00
1. Install latest Codex release
2024-09-27 22:31:39 +03:00
```shell
2024-10-15 10:54:59 +03:00
curl -s https://get.codex.storage/install.sh | bash
2024-09-27 22:31:39 +03:00
```
2024-10-15 10:54:59 +03:00
2. Install dependencies
2024-09-27 22:31:39 +03:00
```shell
2025-09-19 15:02:42 +02:00
# (0.0.1)Debian-based Linux
2024-09-27 22:31:39 +03:00
sudo apt update & & sudo apt install libgomp1
```
2024-10-15 10:54:59 +03:00
3. Check the result
2024-09-27 22:31:39 +03:00
```shell
codex --version
```
2025-09-19 15:02:42 +02:00
### (0.0.1)Windows
2024-09-27 22:31:39 +03:00
2024-11-08 20:27:36 +02:00
1. Install latest Codex release
```batch
curl -sO https://get.codex.storage/install.cmd & & install.cmd
```
2024-10-08 06:32:22 -03:00
> [!WARNING]
> Windows antivirus software and built-in firewalls may cause steps to fail. We will cover some possible errors here, but always consider checking your setup if requests fail - in particular, if temporarily disabling your antivirus fixes it, then it is likely to be the culprit.
If you see an error like:
```batch
curl: (35) schannel: next InitializeSecurityContext failed: CRYPT_E_NO_REVOCATION_CHECK (0x80092012) - The revocation function was unable to check revocation for the certificate.
```
You may need to add the `--ssl-no-revoke` option to your curl calls, i.e., modify the calls above so they look like this:
```batch
curl -LO --ssl-no-revoke https://...
```
2024-11-08 20:27:36 +02:00
2. Update path using console output
- Current session only
```batch
:: Default installation directory
set "PATH=%PATH%%LOCALAPPDATA%\Codex;"
```
2024-09-27 22:31:39 +03:00
2024-11-08 20:27:36 +02:00
- Update PATH permanently
- Control Panel --> System --> Advanced System settings --> Environment Variables
- Alternatively, type `environment variables` into the Windows Search box
2024-09-27 22:31:39 +03:00
2024-11-08 20:27:36 +02:00
3. Check the result
2024-09-27 22:31:39 +03:00
```shell
codex --version
```
2025-09-19 15:02:42 +02:00
## (0.0.1)Run Codex
2024-09-27 22:31:39 +03:00
2025-09-19 15:02:42 +02:00
We may [run Codex in different modes ](./run#run ), and for a quick start we will run [Codex node ](./run#codex-node ), to be able to share files in the network.
2024-09-27 22:31:39 +03:00
2025-09-19 12:57:13 +02:00
0. Obtain an SPR of the Codex network you want to join.
2025-09-19 15:02:42 +02:00
Go to [networks ](../networks/networks )
2025-09-19 12:57:13 +02:00
2024-09-27 22:31:39 +03:00
1. Run Codex
**Linux/macOS**
```shell
codex \
2024-10-03 13:55:23 +03:00
--data-dir=datadir \
--disc-port=8090 \
--listen-addrs=/ip4/0.0.0.0/tcp/8070 \
2025-02-25 18:50:55 +05:30
--nat=any \
2024-10-03 13:55:23 +03:00
--api-cors-origin="*" \
2025-09-19 12:57:13 +02:00
--bootstrap-node=< SPR HERE >
2024-09-27 22:31:39 +03:00
```
**Windows**
2024-10-08 06:32:22 -03:00
> [!WARNING]
> Windows might at this stage prompt you to grant internet access to Codex. You must allow it for things to work.
2024-11-08 20:27:36 +02:00
> It also might be required to add incoming firewall rules for Codex and we can use `netsh` utility.
< details >
< summary > add firewall rules using netsh< / summary >
```batch
:: Add rules
netsh advfirewall firewall add rule name="Allow Codex (TCP-In)" protocol=TCP dir=in localport=8070 action=allow
netsh advfirewall firewall add rule name="Allow Codex (UDP-In)" protocol=UDP dir=in localport=8090 action=allow
:: List rules
netsh advfirewall firewall show rule name=all | find /I "Codex"
:: Delete rules
netsh advfirewall firewall delete rule name="Allow Codex (TCP-In)"
netsh advfirewall firewall delete rule name="Allow Codex (UDP-In)"
```
< / details >
2024-10-08 06:32:22 -03:00
2024-09-27 22:31:39 +03:00
```batch
2024-11-08 20:27:36 +02:00
:: Run Codex
2024-09-27 22:31:39 +03:00
codex ^
2024-10-03 13:55:23 +03:00
--data-dir=datadir ^
--disc-port=8090 ^
--listen-addrs=/ip4/0.0.0.0/tcp/8070 ^
2025-02-25 18:50:55 +05:30
--nat=any ^
2024-10-03 13:55:23 +03:00
--api-cors-origin="*" ^
2025-09-19 12:57:13 +02:00
--bootstrap-node=< SPR HERE >
2024-09-27 22:31:39 +03:00
```
2. Configure port-forwarding for the TCP/UDP ports on your Internet router
| Protocol | Service | Port |
| -------- | --------- | ------ |
| UDP | Discovery | `8090` |
| TCP | Transport | `8070` |
2025-09-19 15:02:42 +02:00
## (0.0.1)Interact with Codex
2024-09-27 22:31:39 +03:00
2024-10-03 00:06:15 +03:00
When your Codex node is up and running you can interact with it using [Codex App UI ](https://app.codex.storage ) for files sharing.
2024-09-27 22:31:39 +03:00
2025-09-19 15:02:42 +02:00
Also, you can interact with Codex using [Codex API ](../developers/api ) and for a walk-through of the API, consider following the [Using Codex ](./using ) guide.
2024-09-27 22:31:39 +03:00
2025-09-19 15:02:42 +02:00
## (0.0.1)Stay in touch
2024-09-27 22:31:39 +03:00
Want to stay up-date, or looking for further assistance? Try our [discord-server ](https://discord.gg/codex-storage ).