René's URL Explorer Experiment


Title: How to configure Kimi K2 with the Moonshoot API? · Issue #340 · opencode-ai/opencode · GitHub

Open Graph Title: How to configure Kimi K2 with the Moonshoot API? · Issue #340 · opencode-ai/opencode

X Title: How to configure Kimi K2 with the Moonshoot API? · Issue #340 · opencode-ai/opencode

Description: As the title suggests. I updated the config.json as follows: { "data": { "directory": ".opencode" }, "providers": { "openai": { "apiKey": "your-openai-api-key", "disabled": false }, "anthropic": { "apiKey": "your-anthropic-api-key", "dis...

Open Graph Description: As the title suggests. I updated the config.json as follows: { "data": { "directory": ".opencode" }, "providers": { "openai": { "apiKey": "your-openai-api-key", "disabled": false }, "anthropic": { ...

X Description: As the title suggests. I updated the config.json as follows: { "data": { "directory": ".opencode" }, "providers": { "openai": { "apiKey":...

Opengraph URL: https://github.com/opencode-ai/opencode/issues/340

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"How to configure Kimi K2 with the Moonshoot API?","articleBody":"As the title suggests.\n\n\u003e I updated the `config.json` as follows:\n```\n{\n  \"data\": {\n    \"directory\": \".opencode\"\n  },\n  \"providers\": {\n    \"openai\": {\n      \"apiKey\": \"your-openai-api-key\",\n      \"disabled\": false\n    },\n    \"anthropic\": {\n      \"apiKey\": \"your-anthropic-api-key\",\n      \"disabled\": false\n    },\n    \"copilot\": {\n      \"disabled\": false\n    },\n    \"groq\": {\n      \"apiKey\": \"your-groq-api-key\",\n      \"disabled\": false\n    },\n    \"openrouter\": {\n      \"apiKey\": \"your-openrouter-api-key\",\n      \"disabled\": false\n    },\n    \"moonshot\": {\n      \"npm\": \"@ai-sdk/openai-compatible\",\n      \"name\": \"Kimi K2 (Moonshot)\",\n      \"options\": {\n        \"baseURL\": \"https://api.moonshot.ai/v1\",\n        \"apiKey\": \"sk-your-moonshot-api-key\"\n      },\n      \"models\": {\n        \"kimi-k2-0711-preview\": {\n          \"name\": \"kimi-k2\"\n        }\n      }\n    }\n  },\n  \"agents\": {\n    \"coder\": {\n      \"model\": \"moonshot/kimi-k2-0711-preview\",\n      \"maxTokens\": 5000\n    },\n    \"task\": {\n      \"model\": \"moonshot/kimi-k2-0711-preview\",\n      \"maxTokens\": 5000\n    },\n    \"title\": {\n      \"model\": \"moonshot/kimi-k2-0711-preview\",\n      \"maxTokens\": 80\n    }\n  },\n  \"shell\": {\n    \"path\": \"/bin/bash\",\n    \"args\": [\"-l\"]\n  },\n  \"lsp\": {\n    \"go\": {\n      \"disabled\": false,\n      \"command\": \"gopls\"\n    }\n  },\n  \"debug\": false,\n  \"debugLSP\": false,\n  \"autoCompact\": true\n}\n```\n\n\u003e Upon running `opencode` for the first time, I was prompted to select a model.\n\u003e Selected 'other' and added the provider name and API key.\n\u003e Got stuck in this process -\u003e `opencode` command would prompt to select a provider always.\n\u003e Selected OpenAI\n\u003e Now `opencode` opens with OpenAI configured.\n\n**How to revert this to configure to Moonshot AI as a provider?**\n\nThere seems to be a bug - upon selecting 'Other' as a provider, the opencode initial config seems to be stuck in a loop, i.e. you cannot configure 'Other' providers.\n\nEdit: \n\n\u003eHow to revert this........\nOpenAI auth was removed by removing the `auth.json` via `rm ~/.local/share/opencode/auth.json`\n","author":{"url":"https://github.com/hadikhantech","@type":"Person","name":"hadikhantech"},"datePublished":"2025-07-20T13:36:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/340/opencode/issues/340"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:96b888ee-62d1-6db1-9d79-d8efffc165b5
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCDBA:220FAF:192AA6F:2071464:69748E70
html-safe-nonce0789468e36004a13d470926532ff3e8eac6ebb9d7ce78b68197ae40da3d9ebe7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDREJBOjIyMEZBRjoxOTJBQTZGOjIwNzE0NjQ6Njk3NDhFNzAiLCJ2aXNpdG9yX2lkIjoiMjE4NjAyMzA2OTkyMTA4NzA4OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac10eb93c9c738d5320c9be4bfa3e4b1238394dea04307335010312ed7e0293ac8
hovercard-subject-tagissue:3246362129
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/opencode-ai/opencode/340/issue_layout
twitter:imagehttps://opengraph.githubassets.com/3d20aa121acecbeb002724a97037b2931899932a27652ce4f4dcc737d6430508/opencode-ai/opencode/issues/340
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3d20aa121acecbeb002724a97037b2931899932a27652ce4f4dcc737d6430508/opencode-ai/opencode/issues/340
og:image:altAs the title suggests. I updated the config.json as follows: { "data": { "directory": ".opencode" }, "providers": { "openai": { "apiKey": "your-openai-api-key", "disabled": false }, "anthropic": { ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamehadikhantech
hostnamegithub.com
expected-hostnamegithub.com
None4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f
turbo-cache-controlno-preview
go-importgithub.com/opencode-ai/opencode git https://github.com/opencode-ai/opencode.git
octolytics-dimension-user_id208539476
octolytics-dimension-user_loginopencode-ai
octolytics-dimension-repository_id949662713
octolytics-dimension-repository_nwoopencode-ai/opencode
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id949662713
octolytics-dimension-repository_network_root_nwoopencode-ai/opencode
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release488b30e96dfd057fbbe44c6665ccbc030b729dde
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/opencode-ai/opencode/issues/340#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopencode-ai%2Fopencode%2Fissues%2F340
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopencode-ai%2Fopencode%2Fissues%2F340
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=opencode-ai%2Fopencode
Reloadhttps://patch-diff.githubusercontent.com/opencode-ai/opencode/issues/340
Reloadhttps://patch-diff.githubusercontent.com/opencode-ai/opencode/issues/340
Reloadhttps://patch-diff.githubusercontent.com/opencode-ai/opencode/issues/340
opencode-ai https://patch-diff.githubusercontent.com/opencode-ai
opencodehttps://patch-diff.githubusercontent.com/opencode-ai/opencode
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fopencode-ai%2Fopencode
Fork 954 https://patch-diff.githubusercontent.com/login?return_to=%2Fopencode-ai%2Fopencode
Star 10.5k https://patch-diff.githubusercontent.com/login?return_to=%2Fopencode-ai%2Fopencode
Code https://patch-diff.githubusercontent.com/opencode-ai/opencode
Issues 116 https://patch-diff.githubusercontent.com/opencode-ai/opencode/issues
Pull requests 46 https://patch-diff.githubusercontent.com/opencode-ai/opencode/pulls
Discussions https://patch-diff.githubusercontent.com/opencode-ai/opencode/discussions
Actions https://patch-diff.githubusercontent.com/opencode-ai/opencode/actions
Projects 0 https://patch-diff.githubusercontent.com/opencode-ai/opencode/projects
Security 0 https://patch-diff.githubusercontent.com/opencode-ai/opencode/security
Insights https://patch-diff.githubusercontent.com/opencode-ai/opencode/pulse
Code https://patch-diff.githubusercontent.com/opencode-ai/opencode
Issues https://patch-diff.githubusercontent.com/opencode-ai/opencode/issues
Pull requests https://patch-diff.githubusercontent.com/opencode-ai/opencode/pulls
Discussions https://patch-diff.githubusercontent.com/opencode-ai/opencode/discussions
Actions https://patch-diff.githubusercontent.com/opencode-ai/opencode/actions
Projects https://patch-diff.githubusercontent.com/opencode-ai/opencode/projects
Security https://patch-diff.githubusercontent.com/opencode-ai/opencode/security
Insights https://patch-diff.githubusercontent.com/opencode-ai/opencode/pulse
How to configure Kimi K2 with the Moonshoot API?https://patch-diff.githubusercontent.com/opencode-ai/opencode/issues/340#top
https://github.com/hadikhantech
https://github.com/hadikhantech
hadikhantechhttps://github.com/hadikhantech
on Jul 20, 2025https://github.com/opencode-ai/opencode/issues/340#issue-3246362129
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.