Setup env

From akash-network/node · View interactive version

Setup env is an AI agent skill from the GitHub repository akash-network/node. Set up development environment by loading direnv. Must be run before any make targets (tests, builds, linting).

How to use this skill

Skill file

Instructions

Before running any make target (make test, make bins, make lint-go, etc.), the direnv environment must be loaded.

Without it, make will fail with errors about AKASH_DIRENV_SET or AKASH_ROOT not being set.

Steps

  1. Allow and load direnv for the project root. This sets all required variables (AKASH_ROOT, AKASH_DIRENV_SET, GOTOOLCHAIN, GOPATH, GOWORK, cache paths) adds tool directories to PATH, and runs make cache to download build tools and wasmvm libraries:

```bash

direnv allow

```

  1. Load environment into current shell:

```bash

eval "$(direnv export bash 2>&1 | grep -v '^direnv:')"

```

  1. Validate:

```bash

[[ "$AKASH_DIRENV_SET" == "1" ]] && echo "direnv loaded" || echo "ERROR: direnv not loaded"

```

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.