GeezerVison is showing github.com — It's possible to re-use opencode-agent as author for GitHub Actions · Issue #9274 · anomalyco/opencode
It's possible to re-use opencode-agent as author for GitHub Actions #9274
Description
Question
I've installed OpenCode Agent GitHub App and configured. I've all sets of APIs already in place.
Is there any way to re-use opencode-agent bot as author of PR review comments, instead of default github-actions handle, or this is something that each project should create its own handle bot?
I've looked at actions/create-github-app-token@v1 action, but this requires private key.
I was kind of hoping that when calling anomalyco/opencode/github action (with OPENCODE_API_KEY) and installing app, it would use different handle when posting comments.
So I guess new account needs to be created for that purpose?
Activity
cogni-ai-ee commented on Jan 18, 2026
Not sure what changed, but it kind of worked, but with error (related: GH-8202).
opencode session ses_42d87f60affeqKkR5g4x10yAut
Fetching prompt data for PR...
Checking out local branch...
remote: Duplicate header: "Authorization"
fatal: unable to access 'https://github.com/Cogni-AI-OU/.github/': The requested URL returned error: 400
Failed with exit code 128
Then the comment about the above error was posted by opencode-agent.
I'm not sure about the comments it-self yet, due to this error.
cogni-ai-ee commented on Jan 18, 2026
Update: This seems to work, but in partial, running anomalyco/opencode/github action successfully posting main PR comments as opencode-agent.
However when agent is posting comment via gh api (POST), the inline-comments are still posted as
github-actions.
Bash {"command":"gh api \\\n --method POST \\\n -H \"Accept: application/vnd.github+json\" \\\n -H \"X-GitHub-Api-Version: 2022-11-28\" \\\n ...
Is this by design?
github-actions commented on Mar 27, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.
Metadata
Metadata
Development
No branches or pull requestsIssue actions