Package Details: opencode 1.1.14-1

Git Clone URL: https://aur.archlinux.org/opencode.git (read-only, click to copy)
Package Base: opencode
Description: The AI coding agent built for the terminal.
Upstream URL: https://github.com/anomalyco/opencode
Licenses: MIT
Conflicts: opencode-bin
Provides: opencode
Submitter: thdxr
Maintainer: thdxr
Last Packager: thdxr
Votes: 7
Popularity: 1.04
First Submitted: 2025-08-24 22:43 (UTC)
Last Updated: 2026-01-12 06:20 (UTC)

Latest Comments

1 2 Next › Last »

agamsingh9 commented on 2026-01-10 06:48 (UTC)

+1 to "why skip the shasum?"

enkvadrat commented on 2026-01-10 05:54 (UTC)

why skip the shasum?

agamsingh9 commented on 2026-01-09 07:53 (UTC)

I get the following error when installing

:: Resolving dependencies...
:: There are 4 providers available for opencode:
:: Repository AUR:
    1) opencode  2) opencode-ai-bin  3) opencode-bin  4) opencode-git
Enter a number (default=1):
:: Calculating conflicts...
:: Calculating inner conflicts...

Aur (1) opencode-1.1.8-1

:: Proceed to review? [Y/n]:

:: Downloading PKGBUILDs...
 PKGBUILDs up to date
 nothing new to review
fetching devel info...
==> Making package: opencode 1.1.8-1 (Fri 09 Jan 2026 01:52:02 AM CST)
==> Retrieving sources...
  -> Found opencode-1.1.8.tar.gz
==> Validating source files with sha256sums...
    opencode-1.1.8.tar.gz ... Skipped
==> Making package: opencode 1.1.8-1 (Fri 09 Jan 2026 01:52:02 AM CST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found opencode-1.1.8.tar.gz
==> Validating source files with sha256sums...
    opencode-1.1.8.tar.gz ... Skipped
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting opencode-1.1.8.tar.gz with bsdtar
==> Sources are ready.
opencode-1.1.8-1: parsing pkg list...
==> Making package: opencode 1.1.8-1 (Fri 09 Jan 2026 01:52:11 AM CST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Removing existing $pkgdir/ directory...
==> Starting build()...
bun install v1.3.5-canary.1 (fa5a5bbe)
error: Workspace dependency "@opencode-ai/plugin" not found

Searched in "./*"

Workspace documentation: https://bun.com/docs/install/workspaces


error: Workspace dependency "@opencode-ai/script" not found

Searched in "./*"

Workspace documentation: https://bun.com/docs/install/workspaces

error: @opencode-ai/plugin@workspace:* failed to resolve
error: @opencode-ai/script@workspace:* failed to resolve
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'opencode-1.1.8-1':
error: packages failed to build: opencode-1.1.8-1

craisis commented on 2026-01-01 21:33 (UTC)

bun has been moved into the main extra repo and the bun and bun-bin AUR packages having been removed as of 2026-01-01. Replacing the bun-bin dep with bun is now needed.

diff --git a/PKGBUILD b/PKGBUILD
index cf0e470..52e2f75 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -13,7 +13,7 @@ license=('MIT')
 provides=('opencode')
 conflicts=('opencode-bin')
 depends=('ripgrep')
-makedepends=('git' 'bun-bin' 'go')
+makedepends=('git' 'bun' 'go')

 source=("opencode-${pkgver}.tar.gz::https://github.com/sst/opencode/archive/v${pkgver}${_subver}.tar.gz")
 sha256sums=('SKIP')

bermudi commented on 2025-12-20 14:05 (UTC)

curl: (22) The requested URL returned error: 404
==> ERROR: Failure while downloading https://github.com/sst/opencode/releases/download/v1.0.177/opencode-linux-x64.tar.gz
    Aborting...
 -> error making: opencode-bin-exit status 1

What is interesting is that v1.0.176 was released an hour ago, so where is v1.0.177 in the PKGBUILD coming from?

Evrenos commented on 2025-12-18 06:30 (UTC)

The build keeps stopping during bun install. It shows bun install v1.3.5 (1e86cebd) and gets to [1808/1811], but then it is just stuck there forever. My internet speed is fine, so I do not know why it is doing that

crabvk commented on 2025-12-09 15:49 (UTC)

@jdix531
You should build in clean chroot and specify build-time dependencies like this:

buildpkg -r $CHROOT -- -I ~/pkg/bun-bin-1.3.3-1-x86_64.pkg.tar.zst

jdix531 commented on 2025-12-08 03:25 (UTC)

I'm getting what appears to be a straight forward version mismatch issue when installing.

3521 packages installed [533.00ms] 8 | if (!expectedBunVersion) { 9 | throw new Error("packageManager field not found in root package.json") 10 | } 11 | 12 | if (process.versions.bun !== expectedBunVersion) { 13 | throw new Error(This script requires bun@${expectedBunVersion}, but you are using bun@${process.versions.bun}) ^ error: This script requires bun@1.3.3, but you are using bun@1.3.4 at /home/josh/.cache/yay/opencode/src/opencode-1.0.134/packages/script/src/index.ts:13:13

Bun v1.3.4 (Linux x64) ==> ERROR: A failure occurred in build(). Aborting... -> error making: opencode-exit status 4 checking dependencies...

rubin55 commented on 2025-11-20 18:52 (UTC)

v1.0.81 fixes the previous build issue, I succesfully built an amd64/x86_64 package.