OpenCode

Setup for OpenCode

Connect AIWG to OpenCode

Prompt-first procedure: Describe the outcome you want in your agent conversation. The agent should select and load the appropriate AIWG assets, explain material changes, request any needed approval, and report verification evidence. Exact commands and flags appear only in the CLI reference.

For the complete first-time journey, start with Install, Connect, and Verify.

Open a terminal in the project’s main folder:

Use AIWG to complete this documented outcome: Open a terminal in the project’s main folder
Have it inspect the current state, explain the plan, ask before material
changes, and report the result with verification evidence.

Restart OpenCode from that folder. In the agent conversation, invoke the agent-owned context regeneration procedure, review the preview, and let it tailor the context while preserving project-authored instructions. Ask it to verify the project root, `.opencode/` and `AGENTS.md` context, installed frameworks, and next action.

For Node.js/npm help, start with Install Node.js and npm Safely. Advanced details live in the OpenCode operational reference.