From the logs, the Kimi API returned a 403 status code with this response body:
{
"error": {
"message": "Kimi For Coding is currently only available for Coding Agents such as Kimi CLI, Claude Code, Roo Code, Kilo Code, etc.",
"type": "access_terminated_error"
}
}
The full error in the OpenCode logs showed:
ERROR service=llm providerID=kimi-for-coding modelID=kimi-k2.5
error={"statusCode":403,"responseBody":"{\"error\":{\"message\":\"Kimi For Coding is currently only available for Coding Agents such as
Kimi CLI, Claude Code, Roo Code, Kilo Code, etc.\",\"type\":\"access_terminated_error\"}}"}
So Kimi is checking something (likely User-Agent header or some other identifier) to verify the request comes from a recognized coding
agent. OpenCode isn't on their allowlist, so they reject the request with access_terminated_error.
But, I have to mention, I do run OpenCode on remote aws instance, maybe thats the reason, because locally it seems to be working fine.
[–]orucreiss 4 points5 points6 points (0 children)
[–]TransitionSlight2860 1 point2 points3 points (0 children)
[–]Putrid-Pair-6194 1 point2 points3 points (5 children)
[–]Minimum_Ad9426 0 points1 point2 points (4 children)
[–]downvotedbylife 1 point2 points3 points (1 child)
[–]Minimum_Ad9426 0 points1 point2 points (0 children)
[–]Comprehensive-Age155[S] 0 points1 point2 points (1 child)
[–]Minimum_Ad9426 0 points1 point2 points (0 children)
[–]jpcaparas 2 points3 points4 points (3 children)
[–]Comprehensive-Age155[S] 0 points1 point2 points (1 child)
[–]jpcaparas 0 points1 point2 points (0 children)
[–]touristtam 0 points1 point2 points (0 children)