{"id":196,"date":"2026-10-09T16:01:30","date_gmt":"2026-10-09T12:01:30","guid":{"rendered":"https:\/\/demensdeum.com\/blog\/2026\/10\/09\/opencode-gigachat\/"},"modified":"2026-10-09T16:01:30","modified_gmt":"2026-10-09T12:01:30","slug":"opencode-gigachat","status":"publish","type":"post","link":"https:\/\/demensdeum.com\/blog\/ja\/2026\/10\/09\/opencode-gigachat\/","title":{"rendered":"\u30ed\u30b7\u30a2\u306e OpenCode \u7528 AI \u30d7\u30ed\u30d0\u30a4\u30c0\u30fc"},"content":{"rendered":"<p>OpenCode \u306f\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u76f4\u63a5\u52d5\u4f5c\u3059\u308b\u30aa\u30fc\u30d7\u30f3 \u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0 \u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3067\u3059\u3002\u30d7\u30ed\u30b8\u30a7\u30af\u30c8 \u30d5\u30a1\u30a4\u30eb\u306e\u8aad\u307f\u53d6\u308a\u3001\u30b3\u30fc\u30c9\u306e\u7de8\u96c6\u3001\u30b3\u30de\u30f3\u30c9\u3068\u30c6\u30b9\u30c8\u306e\u5b9f\u884c\u3001\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u691c\u7d22\u3001git \u3068\u306e\u9023\u643a\u3092\u884c\u3044\u307e\u3059\u3002\u305d\u306e\u5f37\u307f\u306f\u30011 \u3064\u306e\u30e2\u30c7\u30eb \u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u306b\u7e1b\u3089\u308c\u305a\u3001\u6570\u5341\u306e\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u3092\u63a5\u7d9a\u3067\u304d\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/demensdeum.com\/blog\/wp-content\/uploads\/2026\/10\/aibank.jpg\"\/><\/p>\n<p>GigaChat \u306f\u3001Sber \u306b\u3088\u308b\u5927\u898f\u6a21\u306a\u8a00\u8a9e\u30e2\u30c7\u30eb\u3067\u3059\u3002 OpenCode \u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u306e\u6e96\u5099\u5b8c\u4e86\u30ea\u30b9\u30c8\u306b\u306f\u542b\u307e\u308c\u3066\u3044\u307e\u305b\u3093\u304c\u3001\u3053\u308c\u306f\u554f\u984c\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002OpenCode \u306f Vercel AI SDK \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u901a\u3058\u3066\u4efb\u610f\u306e\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u306b\u63a5\u7d9a\u3057\u307e\u3059\u3002 GigaChat \u306b\u306f\u3001OAuth \u8a8d\u8a3c\u3068\u30a2\u30af\u30bb\u30b9 \u30c8\u30fc\u30af\u30f3\u306e\u66f4\u65b0\u3092\u51e6\u7406\u3059\u308b\u30d1\u30c3\u30b1\u30fc\u30b8 <b>gigachat-ai-sdk-provider<\/b> \u304c\u3042\u308a\u307e\u3059\u3002\u5225\u306e\u30cb\u30e5\u30a2\u30f3\u30b9\u306f\u3001\u30c7\u30b8\u30bf\u30eb\u958b\u767a\u7701\u306e\u8a3c\u660e\u66f8\u3067\u3059\u3002\u8a3c\u660e\u66f8\u304c\u306a\u3044\u3068\u3001Node \u306f GigaChat \u30b5\u30fc\u30d0\u30fc\u3092\u4fe1\u983c\u305b\u305a\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u306f\u8a3c\u660e\u66f8\u691c\u8a3c\u30a8\u30e9\u30fc\u3067\u5931\u6557\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u6295\u7a3f\u3067\u306f\u3001\u30ad\u30fc\u3092\u53d6\u5f97\u3057\u3001\u8a3c\u660e\u66f8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001GigaChat \u3092 OpenCode \u306b\u63a5\u7d9a\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<h2>\u5fc5\u8981\u306a\u3082\u306e<\/h2>\n<p>\u6a5f\u80fd\u3059\u308b\u306b\u306f\u6b21\u306e 3 \u3064\u306e\u3082\u306e\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<ul>\n<li><b>OpenCode \u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/b> \u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u304c\u307e\u3060\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u3001OpenCode \u3068 DeepSeek \u306b\u95a2\u3059\u308b\u5225\u306e\u30e1\u30e2\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u624b\u9806\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3057\u305f\u3002<\/li>\n<li><b>GigaChat \u30a2\u30ab\u30a6\u30f3\u30c8\u3002<\/b> GigaChat Studio \u3078\u306e\u767b\u9332\u3068\u8a8d\u8a3c\u30ad\u30fc &#8211; \u30ed\u30b0\u30a4\u30f3\u3059\u308b\u306b\u306f Sber ID \u304c\u5fc5\u8981\u3067\u3059\u3002<\/li>\n<li><b>\u6700\u65b0\u306e\u7aef\u672b\u3002<\/b> WezTerm\u3001Alacritty\u3001Ghostty\u3001Kitty \u306a\u3069\u306e\u7aef\u672b\u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ul>\n<h2>GigaChat \u8a8d\u8a3c\u30ad\u30fc<\/h2>\n<p>\u30ad\u30fc\u306f GigaChat Studio \u500b\u4eba\u30a2\u30ab\u30a6\u30f3\u30c8\u3067\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002 developers.sber.ru\/studio \u306b\u79fb\u52d5\u3057\u3001\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3001<b>GigaChat API<\/b> \u30bb\u30af\u30b7\u30e7\u30f3\u3067\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u8a2d\u5b9a\u306b\u306f\u3001\u8a8d\u8a3c\u30c7\u30fc\u30bf\u3092\u542b\u3080\u30d6\u30ed\u30c3\u30af\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u3053\u304b\u3089\u30b3\u30d4\u30fc\u3055\u308c\u305f\u884c\u306f\u3001base64 \u306e\u65e2\u88fd\u306e\u8a8d\u8a3c\u30ad\u30fc\u3067\u3059\u3002\u74b0\u5883\u5909\u6570\u306b\u4ee3\u5165\u3055\u308c\u308b\u306e\u306f\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3068\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u306e\u30da\u30a2\u3092\u500b\u5225\u306b\u4ee3\u5165\u3059\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u3053\u308c\u3067\u3059\u3002<\/p>\n<p>\u30ad\u30fc\u3068\u3068\u3082\u306b<b>\u30b9\u30b3\u30fc\u30d7<\/b> \u304c\u6307\u5b9a\u3055\u308c\u307e\u3059 &#8211; \u30a2\u30af\u30bb\u30b9\u9818\u57df:<\/p>\n<ul>\n<li><b>GIGACHAT_API_PERS<\/b> &#8211; \u500b\u4eba\u5411\u3051<\/li>\n<li><b>GIGACHAT_API_B2B<\/b> &#8211; \u500b\u4eba\u8d77\u696d\u5bb6\u304a\u3088\u3073\u6cd5\u4eba\u5411\u3051<\/li>\n<li><b>GIGACHAT_API_CORP<\/b> &#8211; \u4f01\u696d\u30a2\u30af\u30bb\u30b9\u3002<\/li>\n<\/ul>\n<p>\u8868\u793a\u3055\u308c\u305f\u30ad\u30fc\u5024\u306f\u3059\u3050\u306b\u4fdd\u5b58\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u5f8c\u3067\u518d\u5ea6\u8868\u793a\u3055\u308c\u308b\u3053\u3068\u306f\u306a\u304f\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u65b0\u3057\u3044\u30ad\u30fc\u5024\u3092\u767a\u884c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u7dda\u304c\u4f55\u3067\u3042\u308b\u304b\u3092\u7406\u89e3\u3059\u308b\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002\u8a8d\u8a3c\u30ad\u30fc\u306f\u500b\u5225\u306e\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u3067\u306f\u306a\u304f\u3001\u3059\u3067\u306b Base64 \u3067\u30a8\u30f3\u30b3\u30fc\u30c9\u3055\u308c\u305f <b>client_id:client_secret<\/b> \u306e\u30da\u30a2\u3067\u3059\u3002 gigachat-js \u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u3001\u6b21\u306e\u30d8\u30c3\u30c0\u30fc\u3092 OAuth \u30ea\u30af\u30a8\u30b9\u30c8\u306b\u7f6e\u304d\u63db\u3048\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-unknown\" data-lang=\"unknown\"><code>Authorization: Basic \u0432\u0430\u0448_\u043a\u043b\u044e\u0447_\u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438\n<\/code><\/pre>\n<\/div>\n<p>\u3053\u308c\u306b\u5fdc\u3058\u3066\u3001JWE \u30a2\u30af\u30bb\u30b9 \u30c8\u30fc\u30af\u30f3\u306e\u6709\u52b9\u671f\u9593\u306f\u7d04 30 \u5206\u3067\u3001\u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u305d\u308c\u3092\u81ea\u52d5\u7684\u306b\u66f4\u65b0\u3057\u307e\u3059\u3002\u30d1\u30c3\u30b1\u30fc\u30b8\u81ea\u4f53\u306f\u3001\u5024\u304cbase64\u306b\u985e\u4f3c\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3001\u5909\u6570\u306b\u8aa4\u3063\u3066\u300c\u751f\u306e\u300d\u30af\u30e9\u30a4\u30a2\u30f3\u30c8 \u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u5834\u5408\u306f\u8b66\u544a\u3057\u307e\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u3001client_id \u3068 client_secret \u306e\u30da\u30a2\u3092\u500b\u5225\u306b\u8ee2\u9001\u3059\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u65e2\u88fd\u306e Base64 \u6587\u5b57\u5217\u3092\u30a2\u30ab\u30a6\u30f3\u30c8\u304b\u3089 config \u304a\u3088\u3073\u74b0\u5883\u5909\u6570\u306b\u8ee2\u9001\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h2>\u30c7\u30b8\u30bf\u30eb\u958b\u767a\u7701\u306e\u8a3c\u660e\u66f8<\/h2>\n<p>GigaChat API \u306f\u3001NCA \u30c7\u30b8\u30bf\u30eb\u958b\u767a\u7701\u304b\u3089\u306e\u8a3c\u660e\u66f8\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u6a19\u6e96\u306e\u4fe1\u983c\u3055\u308c\u305f\u30eb\u30fc\u30c8 \u30b9\u30c8\u30a2\u306b\u306f\u305d\u308c\u3089\u304c\u5b58\u5728\u3057\u306a\u3044\u305f\u3081\u3001\u30a2\u30af\u30bb\u30b9 \u30c8\u30fc\u30af\u30f3\u3092\u53d6\u5f97\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u306f\u6b21\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u3067\u5931\u6557\u3057\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-unknown\" data-lang=\"unknown\"><code>self-signed certificate in certificate chain\n<\/code><\/pre>\n<\/div>\n<p>\u8a3c\u660e\u66f8\u306f\u30aa\u30da\u30ec\u30fc\u30c6\u30a3\u30f3\u30b0 \u30b7\u30b9\u30c6\u30e0 \u30ec\u30d9\u30eb\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u3001\u30d6\u30e9\u30a6\u30b6\u304a\u3088\u3073\u30b7\u30b9\u30c6\u30e0 \u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u306b\u3088\u3063\u3066\u4fe1\u983c\u3055\u308c\u307e\u3059\u3002\u305f\u3060\u3057\u3001OpenCode \u306f Node \u3068 Bun \u3067\u5b9f\u884c\u3055\u308c\u308b\u305f\u3081\u3001\u8a3c\u660e\u66f8\u30d5\u30a1\u30a4\u30eb\u3092 <b>NODE_EXTRA_CA_CERTS<\/b> \u5909\u6570\u306b\u76f4\u63a5\u6307\u5b9a\u3059\u308b\u65b9\u304c\u5b89\u5168\u304b\u3064\u7c21\u5358\u3067\u3059\u3002\u30eb\u30fc\u30c8\u8a3c\u660e\u66f8\u3068\u767a\u884c\u8005\u306e\u8a3c\u660e\u66f8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u30011 \u3064\u306e PEM \u30d5\u30a1\u30a4\u30eb\u306b\u5165\u308c\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-unknown\" data-lang=\"unknown\"><code>curl -s https:\/\/gu-st.ru\/content\/lending\/russian_trusted_root_ca_pem.crt -o russian_trusted_root_ca_pem.crt\ncurl -s https:\/\/gu-st.ru\/content\/lending\/russian_trusted_sub_ca_pem.crt -o russian_trusted_sub_ca_pem.crt\ncat russian_trusted_root_ca_pem.crt russian_trusted_sub_ca_pem.crt > russian_trusted_ca_bundle.pem\n<\/code><\/pre>\n<\/div>\n<p>\u30d5\u30a1\u30a4\u30eb\u306f\u4fbf\u5229\u306a\u5834\u6240\u306b\u914d\u7f6e\u3067\u304d\u3001\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306e\u8d77\u52d5\u6642\u306b\u305d\u306e\u30d5\u30eb\u30d1\u30b9\u3092\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u306b\u843d\u3068\u3057\u7a74\u304c\u3042\u308a\u307e\u3059\u3002\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u306b\u306f CRLF \u6539\u884c\u304c\u4f7f\u7528\u3055\u308c\u3066\u304a\u308a\u3001\u30eb\u30fc\u30c8\u8a3c\u660e\u66f8\u306b\u306f\u672b\u5c3e\u306b\u6539\u884c\u304c\u3042\u308a\u307e\u305b\u3093\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u901a\u5e38\u306e cat \u306f\u3001\u6700\u521d\u306e\u8a3c\u660e\u66f8\u306e\u7d42\u308f\u308a\u3068 2 \u756a\u76ee\u306e\u8a3c\u660e\u66f8\u306e\u59cb\u307e\u308a\u3092 1 \u884c\u306b\u9023\u7d50\u3057\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-unknown\" data-lang=\"unknown\"><code>-----END CERTIFICATE----------BEGIN CERTIFICATE-----\n<\/code><\/pre>\n<\/div>\n<p>LibreSSL &#8211; macOS \u4e0a\u306e\u30b7\u30b9\u30c6\u30e0 openssl \u306f\u3001\u6b63\u78ba\u306b LibreSSL \u3067\u3042\u308b\u3053\u3068\u3092\u601d\u3044\u51fa\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u306e\u3088\u3046\u306a\u30d5\u30a1\u30a4\u30eb\u306f\u53d7\u3051\u5165\u308c\u3089\u308c\u305a\u3001\u30a8\u30e9\u30fc\u3067\u5fdc\u7b54\u3057\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-unknown\" data-lang=\"unknown\"><code>PEM routines:CRYPTO_internal:bad end line\n<\/code><\/pre>\n<\/div>\n<p>\u3064\u307e\u308a\u3001\u732b\u3060\u3051\u3067\u306f\u4e0d\u5341\u5206\u306a\u306e\u3067\u3059\u3002\u5404\u8a3c\u660e\u66f8\u306f\u307e\u305a openssl \u3067\u5b9f\u884c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002openssl \u306f\u3001LF \u6539\u884c\u3068\u6700\u7d42\u6539\u884c\u3092\u542b\u3080\u6b63\u898f\u306e PEM \u306b\u518d\u30b3\u30fc\u30c9\u5316\u3057\u3001\u305d\u306e\u5f8c\u306b\u306e\u307f\u30de\u30fc\u30b8\u3057\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-unknown\" data-lang=\"unknown\"><code>openssl x509 -in russian_trusted_root_ca_pem.crt -out russian_trusted_root_ca.pem\nopenssl x509 -in russian_trusted_sub_ca_pem.crt -out russian_trusted_sub_ca.pem\ncat russian_trusted_root_ca.pem russian_trusted_sub_ca.pem > russian_trusted_ca_bundle.pem\n<\/code><\/pre>\n<\/div>\n<p>\u6b21\u306e\u3088\u3046\u306b\u30d5\u30a1\u30a4\u30eb\u304c\u8aad\u307f\u53d6\u3089\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-unknown\" data-lang=\"unknown\"><code>openssl x509 -in russian_trusted_ca_bundle.pem -noout -subject\n<\/code><\/pre>\n<\/div>\n<p>\u8a3c\u660e\u66f8\u304c\u5225\u306e\u30bd\u30fc\u30b9\u304b\u3089\u53d6\u5f97\u3055\u308c\u3001DER \u307e\u305f\u306f PKCS#7 \u5f62\u5f0f\u3067\u3042\u308b\u5834\u5408\u306f\u3001PEM \u306b\u518d\u30b3\u30fc\u30c9\u5316\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-unknown\" data-lang=\"unknown\"><code>openssl x509 -in cert.crt -inform DER -outform PEM -out cert.pem\nopenssl pkcs7 -print_certs -in bundle.p7b -out cert.pem\n<\/code><\/pre>\n<\/div>\n<h2>OpenCode \u306b\u63a5\u7d9a<\/h2>\n<p>\u30d7\u30ed\u30d0\u30a4\u30c0\u306f <b>opencode.jsonc<\/b> \u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u8a18\u8ff0\u3055\u308c\u3066\u3044\u307e\u3059\u3002 OpenCode \u81ea\u4f53\u306f\u3001<b>npm<\/b> \u30d5\u30a3\u30fc\u30eb\u30c9\u3067\u6307\u5b9a\u3055\u308c\u305f npm \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u63a5\u7d9a\u3057\u3001 \u305d\u306e\u4e2d\u3067<b>createGigaChat<\/b> \u30d5\u30a1\u30af\u30c8\u30ea\u3092\u898b\u3064\u3051\u3066\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u6e21\u3057\u307e\u3059\u3002 API \u304b\u3089\u306e\u8b58\u5225\u5b50\u306b\u3088\u3063\u3066\u30e2\u30c7\u30eb\u3092\u30ea\u30b9\u30c8\u3059\u308b\u3060\u3051\u3067\u5341\u5206\u3067\u3059\u3002<\/p>\n<p>\u30d5\u30a1\u30a4\u30eb\u306f\u6b21\u306e 2 \u3064\u306e\u5834\u6240\u306b\u914d\u7f6e\u3067\u304d\u307e\u3059\u3002<\/p>\n<ul>\n<li><b>\u30b0\u30ed\u30fc\u30d0\u30eb<\/b> &#8211; ~\/.config\/opencode\/opencode.jsonc\u3002\u8a2d\u5b9a\u306f\u3059\u3079\u3066\u306e\u30e6\u30fc\u30b6\u30fc \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u9069\u7528\u3055\u308c\u307e\u3059\u3002<\/li>\n<li><b>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u5185<\/b> &#8211; \u30d7\u30ed\u30b8\u30a7\u30af\u30c8 \u30eb\u30fc\u30c8\u306e opencode.jsonc\u3002\u3053\u306e\u69cb\u6210\u306f\u512a\u5148\u5ea6\u304c\u9ad8\u304f\u3001git \u306b\u5b89\u5168\u306b\u30b3\u30df\u30c3\u30c8\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ul>\n<p>\u4e21\u65b9\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u540c\u3058\u30b9\u30ad\u30fc\u30e0\u3092\u4f7f\u7528\u3057\u3001\u7d50\u5408\u3055\u308c\u307e\u3059\u3002\u30d7\u30ed\u30b8\u30a7\u30af\u30c8 \u30d5\u30a1\u30a4\u30eb\u306f\u4e00\u81f4\u3059\u308b\u30ad\u30fc\u3092\u6301\u3064\u30b0\u30ed\u30fc\u30d0\u30eb \u30d5\u30a1\u30a4\u30eb\u3068\u306e\u307f\u91cd\u8907\u3057\u3001\u6b8b\u308a\u306e\u8a2d\u5b9a\u306f\u4fdd\u5b58\u3055\u308c\u307e\u3059\u3002 .jsonc \u62e1\u5f35\u5b50\u3082\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u3059\u3002 GigaChat \u304c\u4e00\u90e8\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3067\u306e\u307f\u5fc5\u8981\u306a\u5834\u5408\u306f\u3001\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u3092\u30b0\u30ed\u30fc\u30d0\u30eb\u69cb\u6210\u3067\u306f\u306a\u304f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u69cb\u6210\u306b\u4fdd\u6301\u3059\u308b\u65b9\u304c\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-unknown\" data-lang=\"unknown\"><code>{\n  \"$schema\": \"https:\/\/opencode.ai\/config.json\",\n  \"provider\": {\n    \"gigachat\": {\n      \"npm\": \"gigachat-ai-sdk-provider\",\n      \"name\": \"GigaChat\",\n      \"models\": {\n        \"GigaChat-2-Max\": { \"name\": \"GigaChat 2 Max\" },\n        \"GigaChat-2-Pro\": { \"name\": \"GigaChat 2 Pro\" },\n        \"GigaChat-2\": { \"name\": \"GigaChat 2 Lite\" },\n        \"GigaChat\": { \"name\": \"GigaChat\" }\n      }\n    }\n  }\n}\n<\/code><\/pre>\n<\/div>\n<p>\u500b\u4eba\u30ad\u30fc\u4ed8\u304d\u3067\u5229\u7528\u53ef\u80fd\u306a\u30e2\u30c7\u30eb\u306f\u3053\u3053\u306b\u30ea\u30b9\u30c8\u3055\u308c\u3066\u3044\u307e\u3059\u3002 GigaChat 3 \u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u500b\u4eba\u8d77\u696d\u5bb6\u307e\u305f\u306f\u6cd5\u4eba\u5411\u3051\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304c\u3042\u308b\u5834\u5408\u306f\u3001models \u30e1\u30bd\u30c3\u30c9\u304b\u3089\u306e\u5fc5\u8981\u306a\u8b58\u5225\u5b50\u3092 models \u30d6\u30ed\u30c3\u30af\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<p>\u30ad\u30fc\u81ea\u4f53\u3092\u30d5\u30a1\u30a4\u30eb\u306b\u4fdd\u5b58\u3059\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u74b0\u5883\u5909\u6570\u306b\u6e21\u3059\u65b9\u304c\u4fbf\u5229\u3067\u3059\u3002gigachat-js \u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u81ea\u52d5\u7684\u306b\u30ad\u30fc\u3092\u8aad\u307f\u53d6\u308a\u307e\u3059\u3002\u30b9\u30b3\u30fc\u30d7\u5024\u3092\u5909\u6570\u306b\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u6b8b\u3063\u3066\u3044\u308b\u306e\u306f\u3001\u8a3c\u660e\u66f8\u3078\u306e\u30d1\u30b9\u3092\u8a2d\u5b9a\u3057\u3001\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3092\u8d77\u52d5\u3059\u308b\u3053\u3068\u3060\u3051\u3067\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-unknown\" data-lang=\"unknown\"><code>export GIGACHAT_CREDENTIALS=\u0432\u0430\u0448_\u043a\u043b\u044e\u0447_\u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438\nexport GIGACHAT_SCOPE=GIGACHAT_API_PERS\nexport NODE_EXTRA_CA_CERTS=\/\u043f\u0443\u0442\u044c\/\u043a\/russian_trusted_ca_bundle.pem\nopencode\n<\/code><\/pre>\n<\/div>\n<p>\u3053\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u3001\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u304c\u30ed\u30fc\u30ab\u30eb\u306e auth.json \u30b9\u30c8\u30ec\u30fc\u30b8\u306b\u4fdd\u5b58\u3055\u308c\u305a\u3001\u30d7\u30ed\u30bb\u30b9\u306e\u74b0\u5883\u5185\u306b\u306e\u307f\u5b58\u5728\u3059\u308b\u305f\u3081\u3001\u512a\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306f\u3001CI \u3084 1 \u56de\u9650\u308a\u306e\u8d77\u52d5\u306e\u5834\u5408\u306b\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<h2>\u30e2\u30c7\u30eb<\/h2>\n<p>\u4f7f\u7528\u53ef\u80fd\u306a\u30e2\u30c7\u30eb\u306e\u30bb\u30c3\u30c8\u306f\u30b9\u30b3\u30fc\u30d7 \u30ad\u30fc\u306b\u3088\u3063\u3066\u7570\u306a\u308a\u307e\u3059\u3002\u500b\u4eba\u30ad\u30fc (GIGACHAT_API_PERS) \u306f\u3001GigaChat \u304a\u3088\u3073 GigaChat 2 \u30d5\u30a1\u30df\u30ea\u3067\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<ul>\n<li><b>GigaChat<\/b> &#8211; \u57fa\u672c\u30e2\u30c7\u30eb\u3002<\/li>\n<li><b>GigaChat-2<\/b> &#8211; \u65e5\u5e38\u696d\u52d9\u5411\u3051\u306e\u9ad8\u901f\u304b\u3064\u8efd\u91cf\u306e\u30e2\u30c7\u30eb\u3002\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3067\u306f Lite \u3068\u3057\u3066\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/li>\n<li><b>GigaChat-2-Pro<\/b> &#8211; \u30ea\u30bd\u30fc\u30b9\u3092\u5927\u91cf\u306b\u6d88\u8cbb\u3059\u308b\u30bf\u30b9\u30af\u5411\u3051\u306b\u6539\u826f\u3055\u308c\u305f\u30e2\u30c7\u30eb\u3002<\/li>\n<li><b>GigaChat-2-Max<\/b> \u306f\u3001\u500b\u4eba\u30ad\u30fc\u3092\u4f7f\u7528\u3057\u3066\u5229\u7528\u3067\u304d\u308b\u4e2d\u3067\u6700\u3082\u5f37\u529b\u3067\u3059\u3002<\/li>\n<\/ul>\n<p>GigaChat 3 \u30d5\u30a1\u30df\u30ea (GigaChat-3-Ultra\u3001GigaChat-3-Pro\u3001GigaChat3.5-432B-A28B-Reasoning \u306a\u3069\u306e\u30aa\u30fc\u30d7\u30f3 \u30e2\u30c7\u30eb) \u306f\u30b3\u30f3\u30bd\u30fc\u30eb \u30ab\u30bf\u30ed\u30b0\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u304c\u3001\u500b\u4eba\u30ad\u30fc\u3067\u306f\u5229\u7528\u3067\u304d\u307e\u305b\u3093\u3002\u30b9\u30b3\u30fc\u30d7 GIGACHAT_API_B2B \u307e\u305f\u306f GIGACHAT_API_CORP \u3068\u9069\u5207\u306a\u6599\u91d1\u3092\u6301\u3064\u500b\u4eba\u306e\u8d77\u696d\u5bb6\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u307e\u305f\u306f\u6cd5\u4eba\u304c\u5fc5\u8981\u3067\u3059\u3002\u500b\u4eba\u30ad\u30fc\u3067\u306f\u3001\u3053\u306e\u3088\u3046\u306a\u30e2\u30c7\u30eb\u306f\u30a8\u30e9\u30fc\u3067\u5fdc\u7b54\u3057\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-unknown\" data-lang=\"unknown\"><code>{\"status\":404,\"message\":\"No such model\"}\n<\/code><\/pre>\n<\/div>\n<p>\u30e2\u30c7\u30eb\u306e\u30ea\u30b9\u30c8\u3092\u30af\u30a8\u30ea\u3059\u308b\u3053\u3068\u3067\u3001\u30ad\u30fc\u304c\u5b9f\u969b\u306b\u51fa\u529b\u3059\u308b\u3082\u306e\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-unknown\" data-lang=\"unknown\"><code>curl -H \"Authorization: Bearer <\u0442\u043e\u043a\u0435\u043d_\u0434\u043e\u0441\u0442\u0443\u043f\u0430>\" https:\/\/gigachat.devices.sberbank.ru\/api\/v1\/models\n<\/code><\/pre>\n<\/div>\n<p>\u3042\u30682\u70b9\u3002 API \u306e\u30e2\u30c7\u30eb ID \u306f\u8868\u793a\u3055\u308c\u308b\u540d\u524d\u3068\u4e00\u81f4\u3057\u307e\u305b\u3093\u3002\u30e9\u30a4\u30c8 \u30e2\u30c7\u30eb\u306f GigaChat-2-Lite \u3067\u306f\u306a\u304f\u3001<b>GigaChat-2<\/b> \u3068\u547c\u3070\u308c\u307e\u3059\u3002\u307e\u305f\u3001\u30b3\u30f3\u30bd\u30fc\u30eb\u306e\u30ab\u30bf\u30ed\u30b0\u306b\u306f\u3001\u30ad\u30fc\u3067\u5229\u7528\u3067\u304d\u308b\u3082\u306e\u3068\u540c\u3058\u3082\u306e\u306f\u8868\u793a\u3055\u308c\u306a\u3044\u305f\u3081\u3001\u4fa1\u683c\u306e\u30ea\u30b9\u30c8\u3067\u306f\u306a\u304f\u3001\u30e2\u30c7\u30eb \u30e1\u30bd\u30c3\u30c9\u306e\u5fdc\u7b54\u306b\u7126\u70b9\u3092\u5f53\u3066\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3067\u306f\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30e2\u30c7\u30eb\u306e\u30ea\u30b9\u30c8\u304c\u958b\u304d\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-unknown\" data-lang=\"unknown\"><code>\/models\n<\/code><\/pre>\n<\/div>\n<p>\u30d5\u30a1\u30a4\u30eb\u9593\u306e\u79fb\u52d5\u3001\u8efd\u5fae\u306a\u7de8\u96c6\u3001\u30c6\u30b9\u30c8\u306e\u5b9f\u884c\u306a\u3069\u3001\u30ea\u30dd\u30b8\u30c8\u30ea\u5185\u3067\u306e\u65e5\u5e38\u7684\u306a\u4f5c\u696d\u306b\u306f\u3001GigaChat-2 \u3067\u5341\u5206\u3067\u3059\u3002\u8907\u96d1\u306a\u30bf\u30b9\u30af\u3084\u30c7\u30b6\u30a4\u30f3\u306e\u5834\u5408\u306f\u3001Pro \u307e\u305f\u306f Max \u306b\u5207\u308a\u66ff\u3048\u308b\u306e\u304c\u5408\u7406\u7684\u3067\u3059\u3002<\/p>\n<h2>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306e\u6700\u521d\u306e\u8d77\u52d5<\/h2>\n<p>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8 \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3057\u3001\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-unknown\" data-lang=\"unknown\"><code>cd \u0432\u0430\u0448_\u043f\u0440\u043e\u0435\u043a\u0442\nopencode\n<\/code><\/pre>\n<\/div>\n<p>\u6700\u521d\u306e\u30b9\u30c6\u30c3\u30d7\u306f\u3001\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3092\u521d\u671f\u5316\u3059\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-unknown\" data-lang=\"unknown\"><code>\/init\n<\/code><\/pre>\n<\/div>\n<p>OpenCode \u306f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u69cb\u9020\u3092\u5206\u6790\u3057\u3001\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3078\u306e\u6307\u793a\u3067\u3042\u308b\u30d5\u30a1\u30a4\u30eb <b>AGENTS.md<\/b> \u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306f git \u306b\u30b3\u30df\u30c3\u30c8\u3059\u308b\u4fa1\u5024\u304c\u3042\u308a\u307e\u3059\u3002\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u304c\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u63a1\u7528\u3055\u308c\u3066\u3044\u308b\u898f\u5247\u3068\u30d1\u30bf\u30fc\u30f3\u3092\u7406\u89e3\u3059\u308b\u306e\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002<\/p>\n<h2>\u4ee3\u66ff: \u30ed\u30fc\u30ab\u30eb \u30d7\u30ed\u30ad\u30b7<\/h2>\n<p>\u4f55\u3089\u304b\u306e\u7406\u7531\u3067 npm \u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u3092\u4f7f\u7528\u3057\u305f\u304f\u306a\u3044\u5834\u5408\u306f\u3001\u30ed\u30fc\u30ab\u30eb \u30d7\u30ed\u30ad\u30b7\u3067\u3082\u540c\u3058\u7d50\u679c\u304c\u5f97\u3089\u308c\u307e\u3059\u3002 GigaChat \u30c1\u30fc\u30e0\u306b\u306f\u3001\u516c\u5f0f\u306e <b>gpt2giga<\/b> &#8211; FastAPI \u30b5\u30fc\u30d3\u30b9\u304c\u3042\u308a\u3001OpenAI\u3001Anthropic\u3001Gemini \u5f62\u5f0f\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092 GigaChat API \u306b\u5909\u63db\u3057\u3001\u30a2\u30af\u30bb\u30b9 \u30c8\u30fc\u30af\u30f3\u81ea\u4f53\u3092\u66f4\u65b0\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u30dd\u30fc\u30c8 8090 \u3067\u30ed\u30fc\u30ab\u30eb\u306b\u751f\u6210\u3055\u308c\u3001\u305d\u306e\u5f8c\u3001\u901a\u5e38\u306e OpenAI \u4e92\u63db\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u304c\u3001\u30d9\u30fc\u30b9 \u30a2\u30c9\u30ec\u30b9 http:\/\/localhost:8090\/v1 \u306e <b>@ai-sdk\/openai-compatibility<\/b> \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4ecb\u3057\u3066 OpenCode \u3067\u8a2d\u5b9a\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u30d1\u30b9\u306e\u6b20\u70b9\u306f\u3001\u5b9f\u884c\u4e2d\u306e Python \u30b5\u30fc\u30d3\u30b9\u3092 OpenCode \u306e\u96a3\u306b\u7dad\u6301\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-unknown\" data-lang=\"unknown\"><code>{\n  \"$schema\": \"https:\/\/opencode.ai\/config.json\",\n  \"provider\": {\n    \"gigachat\": {\n      \"npm\": \"@ai-sdk\/openai-compatible\",\n      \"name\": \"GigaChat (proxy)\",\n      \"options\": {\n        \"baseURL\": \"http:\/\/localhost:8090\/v1\"\n      },\n      \"models\": {\n        \"GigaChat-2-Max\": { \"name\": \"GigaChat 2 Max\" }\n      }\n    }\n  }\n}\n<\/code><\/pre>\n<\/div>\n<h2>DeepSeek \u304a\u3088\u3073 Cloud.ru \u7d4c\u7531\u306e\u305d\u306e\u4ed6\u306e\u30e2\u30c7\u30eb<\/h2>\n<p>GigaChat API \u81ea\u4f53\u306b\u306f DeepSeek \u30e2\u30c7\u30eb\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u5b58\u5728\u3059\u308b\u306e\u306f GigaChat \u30d5\u30a1\u30df\u30ea\u3068\u57cb\u3081\u8fbc\u307f\u7528\u306e\u30e2\u30c7\u30eb\u306e\u307f\u3067\u3059\u3002 OpenCode \u3067 DeepSeek \u304c\u5fc5\u8981\u3060\u304c\u3001\u30ed\u30b7\u30a2\u306e\u30af\u30e9\u30a6\u30c9 \u30b2\u30fc\u30c8\u30a6\u30a7\u30a4\u3092\u7d4c\u7531\u3059\u308b\u5834\u5408\u306f\u3001Cloud.ru \u306e Foundation Models \u30b5\u30fc\u30d3\u30b9\u304c\u9069\u3057\u3066\u3044\u307e\u3059\u3002 OpenAI \u4e92\u63db\u30d7\u30ed\u30c8\u30b3\u30eb\u3092\u4f7f\u7528\u3057\u3066\u30e2\u30c7\u30eb\u3092\u914d\u4fe1\u3059\u308b\u305f\u3081\u3001\u6a19\u6e96\u306e <b>@ai-sdk\/openai-compatibility<\/b> \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f7f\u7528\u3057\u3066\u63a5\u7d9a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>Cloud.ru Foundation Models \u30ab\u30bf\u30ed\u30b0\u306b\u306f\u3001\u305f\u3068\u3048\u3070\u6b21\u306e\u30e2\u30c7\u30eb\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-unknown\" data-lang=\"unknown\"><code>deepseek-ai\/DeepSeek-V4.1-Flash\ndeepseek-ai\/DeepSeek-V4-Flash\ndeepseek-ai\/DeepSeek-V4-Pro\n<\/code><\/pre>\n<\/div>\n<p>\u30ad\u30fc\u306f\u3001Cloud.ru \u30b3\u30f3\u30bd\u30fc\u30eb\u306e [\u30e6\u30fc\u30b6\u30fc] \u30bb\u30af\u30b7\u30e7\u30f3\u3001[\u30b5\u30fc\u30d3\u30b9 \u30a2\u30ab\u30a6\u30f3\u30c8] \u30bf\u30d6\u3067\u767a\u884c\u3055\u308c\u307e\u3059\u3002\u30d7\u30ed\u30b8\u30a7\u30af\u30c8 \u30ec\u30d9\u30eb\u306e\u30b5\u30fc\u30d3\u30b9 \u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u3001\u305d\u306e\u8a8d\u8a3c\u60c5\u5831\u3067 Foundation Models \u30b5\u30fc\u30d3\u30b9\u306e API \u30ad\u30fc\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u30ad\u30fc\u306e\u79d8\u5bc6\u306f\u4e00\u5ea6\u8868\u793a\u3055\u308c\u3001\u4fdd\u5b58\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>opencode.json \u306e\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u69cb\u6210\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-unknown\" data-lang=\"unknown\"><code>{\n  \"$schema\": \"https:\/\/opencode.ai\/config.json\",\n  \"provider\": {\n    \"cloudru\": {\n      \"npm\": \"@ai-sdk\/openai-compatible\",\n      \"name\": \"Cloud.ru Foundation Models\",\n      \"options\": {\n        \"baseURL\": \"https:\/\/foundation-models.api.cloud.ru\/v1\",\n        \"apiKey\": \"{env:CLOUDRU_API_KEY}\"\n      },\n      \"models\": {\n        \"deepseek-ai\/DeepSeek-V4.1-Flash\": { \"name\": \"DeepSeek V4.1 Flash\", \"limit\": { \"context\": 1048576, \"output\": 1048576 } },\n        \"deepseek-ai\/DeepSeek-V4-Flash\": { \"name\": \"DeepSeek V4 Flash\", \"limit\": { \"context\": 1048576, \"output\": 1048576 } },\n        \"deepseek-ai\/DeepSeek-V4-Pro\": { \"name\": \"DeepSeek V4 Pro\", \"limit\": { \"context\": 1048576, \"output\": 1048576 } }\n      }\n    }\n  }\n}\n<\/code><\/pre>\n<\/div>\n<p>\u30ad\u30fc\u3092\u74b0\u5883\u5909\u6570\u306b\u6e21\u3057\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-unknown\" data-lang=\"unknown\"><code>export CLOUDRU_API_KEY=\u0432\u0430\u0448_\u043a\u043b\u044e\u0447_cloudru\nopencode\n<\/code><\/pre>\n<\/div>\n<p>\u3053\u3053\u3067\u306f\u30c7\u30b8\u30bf\u30eb\u958b\u767a\u7701\u306e\u8a3c\u660e\u66f8\u306f\u5fc5\u8981\u3042\u308a\u307e\u305b\u3093\u3002api.cloud.ru \u30c9\u30e1\u30a4\u30f3\u306b\u306f\u3001GigaChat \u3068\u306f\u7570\u306a\u308a\u3001\u901a\u5e38\u306e TLS \u304c\u3042\u308a\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30d0\u30e9\u30f3\u30b9\u3092\u76e3\u8996\u3059\u308b\u4fa1\u5024\u306f\u3042\u308a\u307e\u3059\u3002\u30a2\u30ab\u30a6\u30f3\u30c8\u304c\u30bc\u30ed\u306e\u5834\u5408\u3001\u8a8d\u8a3c\u306f\u6210\u529f\u3057\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u306f\u8acb\u6c42\u5fdc\u7b54\u3068\u3068\u3082\u306b\u30c9\u30ed\u30c3\u30d7\u3055\u308c\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-unknown\" data-lang=\"unknown\"><code>{\"message\":\"Not enough money\"}\n<\/code><\/pre>\n<\/div>\n<p>\u3053\u308c\u306f\u69cb\u6210\u30a8\u30e9\u30fc\u3067\u306f\u306a\u304f\u3001Cloud.ru \u30b3\u30f3\u30bd\u30fc\u30eb\u3067\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u66f4\u65b0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3053\u3068\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u6ce8\u610f\u3059\u3079\u304d\u3053\u3068<\/h2>\n<p>\u521d\u3081\u3066\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3059\u308b\u3068\u304d\u306b\u6700\u3082\u3088\u304f\u554f\u984c\u3068\u306a\u308b\u3044\u304f\u3064\u304b\u306e\u5b9f\u7528\u7684\u306a\u30dd\u30a4\u30f3\u30c8:<\/p>\n<ul>\n<li><b>\u8a3c\u660e\u66f8\u691c\u8a3c\u30a8\u30e9\u30fc\u3002<\/b> \u30c1\u30a7\u30fc\u30f3\u5185\u306e\u81ea\u5df1\u7f72\u540d\u8a3c\u660e\u66f8\u306b\u95a2\u3059\u308b\u30e1\u30c3\u30bb\u30fc\u30b8\u306f\u3001NODE_EXTRA_CA_CERTS \u5909\u6570\u304c\u9078\u629e\u3055\u308c\u306a\u304b\u3063\u305f\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u30d1\u30b9\u3001\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u304c\u540c\u3058\u74b0\u5883\u3067\u5b9f\u884c\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3001\u304a\u3088\u3073\u30d5\u30a1\u30a4\u30eb\u81ea\u4f53\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002cat \u3092\u4f7f\u7528\u3057\u3066 2 \u3064\u306e\u8a3c\u660e\u66f8\u3092\u30de\u30fc\u30b8\u3059\u308b\u3068\u304d\u306b\u3001\u305d\u308c\u3089\u306e\u672b\u5c3e\u304c\u540c\u3058\u884c\u306b\u306a\u308b\u5834\u5408\u3001LibreSSL \u306f\u4e0d\u6b63\u306a\u672b\u5c3e\u884c\u3092\u8fd4\u3057\u3001\u8a3c\u660e\u66f8\u306b\u95a2\u3059\u308b\u30bb\u30af\u30b7\u30e7\u30f3\u3068\u540c\u69d8\u306b\u3001openssl \u3092\u4ecb\u3057\u3066\u30d0\u30f3\u30c9\u30eb\u3092\u518d\u69cb\u7bc9\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n<li><b>\u30a8\u30e9\u30fc 401\u3002<\/b> \u539f\u5247\u3068\u3057\u3066\u3001\u3053\u308c\u306f\u4e0d\u6b63\u306a\u8a8d\u8a3c\u30ad\u30fc\u307e\u305f\u306f\u30b9\u30b3\u30fc\u30d7\u306e\u4e0d\u4e00\u81f4\u3067\u3059\u3002\u500b\u4eba\u306e\u5834\u5408\u306f GIGACHAT_API_PERS \u304c\u5fc5\u8981\u3067\u3059\u3002<\/li>\n<li><b>\u30a8\u30e9\u30fc 404 \u3068\u305d\u306e\u3088\u3046\u306a\u30e2\u30c7\u30eb\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/b> \u3053\u308c\u306f\u63a5\u7d9a\u30a8\u30e9\u30fc\u3067\u306f\u306a\u304f\u3001\u7279\u5b9a\u306e\u30e2\u30c7\u30eb\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u3044\u3053\u3068\u3067\u3059\u3002\u69cb\u6210\u304b\u3089\u524a\u9664\u3059\u308b\u304b\u3001\u5229\u7528\u53ef\u80fd\u306a\u3082\u306e\u306b\u7f6e\u304d\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u3002 \u300cGigaChat 404: Unknown error\u300d\u306e\u3088\u3046\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u3067\u306f\u3001\u540c\u3058 GigaChat \u306e\u5fdc\u7b54\u304c\u539f\u56e0\u3067\u3059\u3002\u30d7\u30ed\u30d0\u30a4\u30c0\u304c\u30a8\u30e9\u30fc\u672c\u6587\u3092\u89e3\u6790\u3067\u304d\u306a\u304b\u3063\u305f\u3060\u3051\u3067\u3059\u3002<\/li>\n<li><b>\u30b3\u30b9\u30c8\u3002<\/b> OpenCode \u306f\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3\u3092\u5fc5\u8981\u3068\u3057\u307e\u305b\u3093\u3002\u30c8\u30fc\u30af\u30f3\u3092\u4f7f\u7528\u3059\u308b\u3068\u304d\u306b GigaChat \u306b\u76f4\u63a5\u652f\u6255\u3046\u305f\u3081\u3001\u9577\u6642\u9593\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u306e\u4fa1\u683c\u306f\u4e88\u6e2c\u53ef\u80fd\u3067\u3059\u3002<\/li>\n<li><b>\u30e2\u30c7\u30eb\u306e\u54c1\u8cea\u3002<\/b> \u8907\u96d1\u306a\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3 \u30bf\u30b9\u30af\u306e\u5834\u5408\u3001\u30af\u30e9\u30b9\u3054\u3068\u306b\u30e2\u30c7\u30eb\u304c\u7570\u306a\u308b\u305f\u3081\u3001\u8a2d\u8a08\u3067\u306f\u3088\u308a\u5f37\u529b\u306a\u30e2\u30c7\u30eb\u3092\u63a1\u7528\u3057\u3001\u3088\u308a\u9ad8\u901f\u306a\u30e2\u30c7\u30eb\u306b\u30eb\u30fc\u30c1\u30f3\u3092\u4e0e\u3048\u308b\u3053\u3068\u304c\u5408\u7406\u7684\u3067\u3059\u3002<\/li>\n<\/ul>\n<h2>\u30ea\u30f3\u30af<\/h2>\n<p><a href=\"https:\/\/opencode.ai\/\" rel=\"noopener\" target=\"_blank\">https:\/\/opencode.ai\/<\/a><br \/>\n<a href=\"https:\/\/opencode.ai\/docs\/providers\/\" rel=\"noopener\" target=\"_blank\">https:\/\/opencode.ai\/docs\/providers\/<\/a><br \/>\n<a href=\"https:\/\/developers.sber.ru\/studio\/\" rel=\"noopener\" target=\"_blank\">https:\/\/developers.sber.ru\/studio\/<\/a><br \/>\n<a href=\"https:\/\/developers.sber.ru\/docs\/ru\/gigachat\/guides\/main\" rel=\"noopener\" target=\"_blank\">https:\/\/developers.sber.ru\/docs\/ru\/gigachat\/guides\/main<\/a><br \/>\n<a href=\"https:\/\/github.com\/nyddle\/gigachat-ai-sdk-provider\" rel=\"noopener\" target=\"_blank\">https:\/\/github.com\/nyddle\/gigachat-ai-sdk-provider<\/a><br \/>\n<a href=\"https:\/\/github.com\/ai-forever\/gpt2giga\" rel=\"noopener\" target=\"_blank\">https:\/\/github.com\/ai-forever\/gpt2giga<\/a><br \/>\n<a href=\"https:\/\/cloud.ru\/docs\/foundation-models\/ug\/topics\/quickstart\" rel=\"noopener\" target=\"_blank\">https:\/\/cloud.ru\/docs\/foundation-models\/ug\/topics\/quickstart<\/a><\/p>\n<h2>\u30bd\u30fc\u30b9<\/h2>\n<p><a href=\"https:\/\/opencode.ai\/docs\/providers\/#custom-provider\" rel=\"noopener\" target=\"_blank\">https:\/\/opencode.ai\/docs\/providers\/#custom-provider<\/a><br \/>\n<a href=\"https:\/\/developers.sber.ru\/docs\/ru\/gigachat\/certificates\" rel=\"noopener\" target=\"_blank\">https:\/\/developers.sber.ru\/docs\/ru\/gigachat\/certificates<\/a><br \/>\n<a href=\"https:\/\/developers.sber.ru\/docs\/ru\/gigachat\/models\/main\" rel=\"noopener\" target=\"_blank\">https:\/\/developers.sber.ru\/docs\/ru\/gigachat\/models\/main<\/a><br \/>\n<a href=\"https:\/\/developers.sber.ru\/docs\/ru\/gigachat\/guides\/selecting-a-model\" rel=\"noopener\" target=\"_blank\">https:\/\/developers.sber.ru\/docs\/ru\/gigachat\/guides\/selecting-a-model<\/a><br \/>\n<a href=\"https:\/\/github.com\/nyddle\/gigachat-ai-sdk-provider\" rel=\"noopener\" target=\"_blank\">https:\/\/github.com\/nyddle\/gigachat-ai-sdk-provider<\/a><br \/>\n<a href=\"https:\/\/github.com\/ai-forever\/gpt2giga\" rel=\"noopener\" target=\"_blank\">https:\/\/github.com\/ai-forever\/gpt2giga<\/a><br \/>\n<a href=\"https:\/\/cloud.ru\/docs\/foundation-models\/ug\/topics\/quickstart\" rel=\"noopener\" target=\"_blank\">https:\/\/cloud.ru\/docs\/foundation-models\/ug\/topics\/quickstart<\/a><br \/>\n<a href=\"https:\/\/cloud.ru\/docs\/foundation-models\/ug\/topics\/overview__available__models\" rel=\"noopener\" target=\"_blank\">https:\/\/cloud.ru\/docs\/foundation-models\/ug\/topics\/overview__available__models<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>OpenCode \u306f\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u76f4\u63a5\u52d5\u4f5c\u3059\u308b\u30aa\u30fc\u30d7\u30f3 \u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0 \u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3067\u3059\u3002\u30d7\u30ed\u30b8\u30a7\u30af\u30c8 \u30d5\u30a1\u30a4\u30eb\u306e\u8aad\u307f\u53d6\u308a\u3001\u30b3\u30fc\u30c9\u306e\u7de8\u96c6\u3001\u30b3\u30de\u30f3\u30c9\u3068\u30c6\u30b9\u30c8\u306e\u5b9f\u884c\u3001\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u691c\u7d22\u3001git \u3068\u306e\u9023\u643a\u3092\u884c\u3044\u307e\u3059\u3002\u305d\u306e\u5f37\u307f\u306f\u30011 \u3064\u306e\u30e2\u30c7\u30eb \u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u306b\u7e1b\u3089\u308c\u305a\u3001\u6570\u5341\u306e\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u3092\u63a5\u7d9a\u3067\u304d\u308b\u3053\u3068\u3067\u3059\u3002 GigaChat \u306f\u3001Sber \u306b\u3088\u308b\u5927\u898f\u6a21\u306a\u8a00\u8a9e\u30e2\u30c7\u30eb\u3067\u3059\u3002 OpenCode \u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u306e\u6e96\u5099\u5b8c\u4e86\u30ea\u30b9\u30c8\u306b\u306f\u542b\u307e\u308c\u3066\u3044\u307e\u305b\u3093\u304c\u3001\u3053\u308c\u306f\u554f\u984c\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002OpenCode \u306f Vercel AI SDK \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u901a\u3058\u3066\u4efb\u610f\u306e\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u306b\u63a5\u7d9a\u3057\u307e\u3059\u3002 GigaChat \u306b\u306f\u3001OAuth \u8a8d\u8a3c\u3068\u30a2\u30af\u30bb\u30b9 \u30c8\u30fc\u30af\u30f3\u306e\u66f4\u65b0\u3092\u51e6\u7406\u3059\u308b\u30d1\u30c3\u30b1\u30fc\u30b8 gigachat-ai-sdk-provider \u304c\u3042\u308a\u307e\u3059\u3002\u5225\u306e\u30cb\u30e5\u30a2\u30f3\u30b9\u306f\u3001\u30c7\u30b8\u30bf\u30eb\u958b\u767a\u7701\u306e\u8a3c\u660e\u66f8\u3067\u3059\u3002\u8a3c\u660e\u66f8\u304c\u306a\u3044\u3068\u3001Node \u306f GigaChat \u30b5\u30fc\u30d0\u30fc\u3092\u4fe1\u983c\u305b\u305a\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u306f\u8a3c\u660e\u66f8\u691c\u8a3c\u30a8\u30e9\u30fc\u3067\u5931\u6557\u3057\u307e\u3059\u3002 \u3053\u306e\u6295\u7a3f\u3067\u306f\u3001\u30ad\u30fc\u3092\u53d6\u5f97\u3057\u3001\u8a3c\u660e\u66f8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001GigaChat \u3092 OpenCode \u306b\u63a5\u7d9a\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002 \u5fc5\u8981\u306a\u3082\u306e \u6a5f\u80fd\u3059\u308b\u306b\u306f\u6b21\u306e 3 \u3064\u306e\u3082\u306e\u304c\u5fc5\u8981\u3067\u3059\u3002 OpenCode \u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u307e\u3059\u3002 \u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u304c\u307e\u3060\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u3001OpenCode \u3068 DeepSeek \u306b\u95a2\u3059\u308b\u5225\u306e\u30e1\u30e2\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u624b\u9806\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3057\u305f\u3002 GigaChat \u30a2\u30ab\u30a6\u30f3\u30c8\u3002 GigaChat Studio \u3078\u306e\u767b\u9332\u3068\u8a8d\u8a3c\u30ad\u30fc &#8211; \u30ed\u30b0\u30a4\u30f3\u3059\u308b\u306b\u306f Sber ID \u304c\u5fc5\u8981\u3067\u3059\u3002 \u6700\u65b0\u306e\u7aef\u672b\u3002 WezTerm\u3001Alacritty\u3001Ghostty\u3001Kitty \u306a\u3069\u306e\u7aef\u672b\u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002 GigaChat [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-196","post","type-post","status-publish","format-standard","hentry","category-notes"],"translation":{"provider":"WPGlobus","version":"3.0.7","language":"ja","enabled_languages":["en","ru","zh","de","ja","fr","es","pt","hi"],"languages":{"en":{"title":true,"content":true,"excerpt":false},"ru":{"title":true,"content":true,"excerpt":false},"zh":{"title":true,"content":true,"excerpt":false},"de":{"title":true,"content":true,"excerpt":false},"ja":{"title":true,"content":true,"excerpt":false},"fr":{"title":true,"content":true,"excerpt":false},"es":{"title":true,"content":true,"excerpt":false},"pt":{"title":true,"content":true,"excerpt":false},"hi":{"title":true,"content":true,"excerpt":false}}},"_links":{"self":[{"href":"https:\/\/demensdeum.com\/blog\/ja\/wp-json\/wp\/v2\/posts\/196","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/demensdeum.com\/blog\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/demensdeum.com\/blog\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/demensdeum.com\/blog\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/demensdeum.com\/blog\/ja\/wp-json\/wp\/v2\/comments?post=196"}],"version-history":[{"count":0,"href":"https:\/\/demensdeum.com\/blog\/ja\/wp-json\/wp\/v2\/posts\/196\/revisions"}],"wp:attachment":[{"href":"https:\/\/demensdeum.com\/blog\/ja\/wp-json\/wp\/v2\/media?parent=196"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/demensdeum.com\/blog\/ja\/wp-json\/wp\/v2\/categories?post=196"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/demensdeum.com\/blog\/ja\/wp-json\/wp\/v2\/tags?post=196"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}