Setup Env
Developmentsetup-envSetup Env is an Agent Skill for development published in the akash-network/node repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Set up development environment by loading direnv. Must be run before any make targets (tests, builds, linting).
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/akash-network/node/blob/HEAD/.agents/skills/setup-env/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/setup-env, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
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
-
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 toPATH, and runsmake cacheto download build tools and wasmvm libraries:direnv allow -
Load environment into current shell:
eval "$(direnv export bash 2>&1 | grep -v '^direnv:')" -
Validate:
[[ "$AKASH_DIRENV_SET" == "1" ]] && echo "direnv loaded" || echo "ERROR: direnv not loaded"
Notes
- If direnv fails, check that required system tools are installed:
make,unzip,wget,curl,npm,jq,readlink,pv,lz4. - On macOS, Homebrew
make(v4+) must be on PATH:export PATH="$(brew --prefix)/opt/make/libexec/gnubin:$PATH".