dev-util/opencode-bin - 1.18.30 (bentoo)

Search

Install

Install this version:

emerge -a =dev-util/opencode-bin-1.18.30

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-util/opencode-bin-1.18.30

Or alternatively:

emerge --autounmask-write -a =dev-util/opencode-bin-1.18.30

Package Information

Description:
opencode, a provider-agnostic AI coding agent for the terminal
Homepage:
https://opencode.ai/ https://github.com/anomalyco/opencode
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
1.18.30 8 -* ~amd64 ~arm64 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DESCRIPTION="opencode, a provider-agnostic AI coding agent for the terminal"
HOMEPAGE="https://opencode.ai/ https://github.com/anomalyco/opencode"
OPENCODE_BASE="https://github.com/anomalyco/opencode/releases/download/v${PV}"
# Upstream ships three Linux CLI flavours per arch -- glibc, -musl and
# -baseline (for CPUs without the newer instruction sets) -- plus a wholly
# separate desktop app (opencode-desktop-*.deb/.rpm/.AppImage). Only the plain
# glibc CLI is packaged here; the desktop app is a different product.
SRC_URI="
	amd64? (
		${OPENCODE_BASE}/opencode-linux-x64.tar.gz
			-> ${P}-amd64.tar.gz
	)
	arm64? (
		${OPENCODE_BASE}/opencode-linux-arm64.tar.gz
			-> ${P}-arm64.tar.gz
	)
"
S="${WORKDIR}"

LICENSE="MIT"
SLOT="0"
KEYWORDS="-* ~amd64 ~arm64"
RESTRICT="bindist mirror strip"

QA_PREBUILT="*"

src_install() {
	exeinto /opt/opencode-bin
	doexe opencode

	dosym -r /opt/opencode-bin/opencode /opt/bin/opencode
}

Manifest for 1.18.30

Type File Size Source URLs
DIST opencode-bin-1.18.30-amd64.tar.gz 60557284 bytes https://github.com/anomalyco/opencode/releases/download/v1.18.30/opencode-linux-x64.tar.gz
DIST opencode-bin-1.18.30-arm64.tar.gz 60366998 bytes https://github.com/anomalyco/opencode/releases/download/v1.18.30/opencode-linux-arm64.tar.gz