openAgent
gitlabThe open source UNIVERSAL agent.
clone
https://gitlab.com/bitzzdev/openAgent.gitAIagentautomationopen-sourceuniversal-agent
name: "opencode GitHub Action"description: "Run opencode in GitHub Actions workflows"branding:icon: "code"color: "orange"inputs:model:description: "Model to use"required: trueagent:description: "Agent to use. Must be a primary agent. Falls back to default_agent from config or 'build' if not found."required: falseshare:description: "Share the opencode session (defaults to true for public repos)"required: falseprompt:description: "Custom prompt to override the default prompt"required: falseuse_github_token:description: "Use GITHUB_TOKEN directly instead of OpenCode App token exchange. When true, skips OIDC and uses the GITHUB_TOKEN env var."required: falsedefault: "false"mentions:description: "Comma-separated list of trigger phrases (case-insensitive). Defaults to '/opencode,/oc'"required: falsevariant:description: "Model variant for provider-specific reasoning effort (e.g., high, max, minimal)"required: falseoidc_base_url:description: "Base URL for OIDC token exchange API. Only required when running a custom GitHub App install. Defaults to https://api.opencode.ai"required: falseruns:using: "composite"steps:- name: Get opencode versionid: versionshell: bashrun: |VERSION=$(curl -sf https://api.github.com/repos/anomalyco/opencode/releases/latest | grep -o '"tag_name": *"[^"]*"' | cut -d'"' -f4)echo "version=${VERSION:-latest}" >> $GITHUB_OUTPUT- name: Cache opencodeid: cacheuses: actions/cache@v4with:path: ~/.opencode/binkey: opencode-${{ runner.os }}-${{ runner.arch }}-${{ steps.version.outputs.version }}- name: Install opencodeif: steps.cache.outputs.cache-hit != 'true'shell: bashrun: curl -fsSL https://opencode.ai/install | bash- name: Add opencode to PATHshell: bashrun: echo "$HOME/.opencode/bin" >> $GITHUB_PATH- name: Run opencodeshell: bashid: run_opencoderun: opencode github runenv:MODEL: ${{ inputs.model }}AGENT: ${{ inputs.agent }}SHARE: ${{ inputs.share }}PROMPT: ${{ inputs.prompt }}USE_GITHUB_TOKEN: ${{ inputs.use_github_token }}MENTIONS: ${{ inputs.mentions }}VARIANT: ${{ inputs.variant }}OIDC_BASE_URL: ${{ inputs.oidc_base_url }}