This repository contains a portable, reproducible setup for AI-assisted development using OpenCode and Spec-Kit, made completly with opencode tui and the speckit workflow.
Run the automated setup wrapper (runs all installers):
bash configure-coding-environment.shThen reload your shell:
exec zsh -lVerify everything works:
opencode --version
specify --version
docker --versionNote: See SESSION.md for current session state, known issues, and troubleshooting.
- OpenCode TUI: Terminal-based AI coding agent
- Repository: https://github.com/opencode/opencode
- Installation:
curl -fsSL https://opencode.ai/install | bash - VS Code Extension: GUI integration in VS Code Insiders
- Repository: https://github.com/tanishqkancharla/opencode-vscode
- Installation:
code-insiders --install-extension tanishqkancharla.opencode-vscode
- Works with local or remote LLM models
See README-opencode.md for detailed setup and usage.
- GitHub's toolkit for specification-driven development
- AI-powered workflow to turn specs into working code
- Supports OpenCode, Claude Code, GitHub Copilot, and more
See README-spec-kit.md for the full workflow guide.
- Python-based dev environment preconfigured with OpenCode
- Cross-platform (macOS, Linux, Windows)
- Reproducible environment for local and Proxmox-based development
- Fixed port conflicts (3001, 8001, 5433) to avoid local service conflicts
- Removed GitHub CLI feature that was causing build failures
See .devcontainer/devcontainer.json for current configuration.
Recent Updates:
- ✅ Fixed VS Code container loading issues
- ✅ Resolved port conflicts with local services
- ✅ Removed problematic GitHub CLI feature
- ✅ Container now builds and connects successfully
The install wrapper (configure-coding-environment.sh) automatically runs these focused scripts:
scripts/install-prereqs.sh— Detects OS, installs Homebrew/package manager, curl, Docker, VS Code Insidersscripts/install-opencode.sh— Installs OpenCode TUI and VS Code extensionscripts/install-spec-kit.sh— Installs uv package manager and specify-cliscripts/configure-env.sh— Updates shell configuration (PATH for uv tools)- Used in this project: Complete devcontainer implementation with OpenCode CLI integration
Features:
- ✅ Detects your OS (macOS, Debian/Ubuntu, Fedora/RHEL)
- ✅ Installs Homebrew (macOS) or uses native package manager (Linux)
- ✅ Installs Docker
- ✅ Installs VS Code Insiders
- ✅ Installs OpenCode TUI
- ✅ Installs OpenCode VS Code extension
- ✅ Installs
uvpackage manager - ✅ Installs Spec-Kit CLI (
specify) - ✅ Used in this project: Complete devcontainer implementation with OpenCode CLI integration
- ✅ Updates shell configuration (
.zshrc,.bashrc) - ✅ All scripts are idempotent (safe to run multiple times)
personal/
├── README.md # Quick-start and overview
├── SESSION.md # Current session state and bootstrap guide
├── README-opencode.md # OpenCode TUI + GUI setup guide
├── README-spec-kit.md # Spec-Driven Development guide
├── opencode-spec-kit-session.md # Original Copilot chat transcript
├── configure-coding-environment.sh # Main wrapper script (runs all installers)
├── .devcontainer/
│ └── devcontainer.json # Dev container configuration
└── scripts/
├── install-prereqs.sh # Prerequisites: Homebrew, curl, Docker, VS Code
├── install-opencode.sh # OpenCode TUI + extension installer
├── install-spec-kit.sh # uv + specify-cli installer
└── configure-env.sh # Shell environment configuration
- macOS or Linux (Debian/Ubuntu, Fedora/RHEL)
- Internet connection
- 10+ GB free disk space (for Docker, dependencies)
-
Run the setup wrapper (first time only):
bash configure-coding-environment.sh
See SESSION.md if issues occur.
-
Reload your shell:
exec zsh -l -
Verify all tools:
opencode --version specify --version uv --version docker --version
-
Choose your workflow:
- Option A: Use OpenCode TUI directly in the terminal
- Option B: Use OpenCode GUI in VS Code Insiders
- Option C: Use Spec-Kit for structured, specification-driven development (recommended)
-
For Spec-Kit setup:
specify init my-project --ai opencode --script sh cd my-project opencode /speckit.constitution -
For dev container development:
- Open this repo in VS Code Insiders
- Use "Dev Containers: Reopen in Container"
See README-spec-kit.md for full Spec-Driven Development workflow.
See SESSION.md for detailed troubleshooting of known issues.
-
specify or opencode not found: Tools install to
~/.local/binwhich may not be on PATH# Check if tools are installed but not on PATH ls ~/.local/bin/specify ~/.local/bin/opencode # Add to PATH (temporary) export PATH="$HOME/.local/bin:$PATH" # Add to PATH permanently (add to ~/.zshrc or ~/.bashrc) echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc exec zsh -l
- After installation: Always reload your shell with
exec zsh -l - If commands not found: Try
source ~/.zshrcthenexec zsh -l
- OpenCode not found: Ensure
~/.zshrcwas updated; check~/.opencode/bin/opencode - VS Code extension not installed: Run
code-insiders --install-extension tanishqkancharla.opencode-vscode --force - specify not found: Verify
uvis installed withuv --versionand install withuv tool install specify-cli --from git+https://github.com/github/spec-kit.git - Docker not starting: Manually start Docker Desktop (Applications folder)
- Container build fails: Check Dockerfile for network issues during tool installation
- Tools not available in container: Verify postCreateCommand runs successfully
- Port conflicts: Container uses ports 3001, 8001, 5433 to avoid conflicts with local services
- OpenCode: https://opencode.ai/
- Spec-Kit: https://github.com/github/spec-kit
- OpenCode VS Code Extension: https://marketplace.visualstudio.com/items?itemName=tanishqkancharla.opencode-vscode
- Dev Containers: https://containers.dev/
Last Updated: 2025-11-28
Setup Status: Refactored and in progress (see SESSION.md)
Tested On: macOS 14+ with Apple Silicon