11import * as readline from 'node:readline/promises' ;
22import {
33 addPluginToOpenCodeConfig ,
4- addProviderConfig ,
54 detectCurrentConfig ,
65 disableDefaultAgents ,
76 generateLiteConfig ,
@@ -107,9 +106,7 @@ function formatConfigSummary(config: InstallConfig): string {
107106 lines . push ( `${ BOLD } Configuration Summary${ RESET } ` ) ;
108107 lines . push ( '' ) ;
109108 lines . push ( ` ${ BOLD } Preset:${ RESET } ${ BLUE } ${ preset } ${ RESET } ` ) ;
110- lines . push (
111- ` ${ config . hasAntigravity ? SYMBOLS . check : `${ DIM } ○${ RESET } ` } Antigravity` ,
112- ) ;
109+ lines . push ( ` ${ config . hasKimi ? SYMBOLS . check : `${ DIM } ○${ RESET } ` } Kimi` ) ;
113110 lines . push (
114111 ` ${ config . hasOpenAI ? SYMBOLS . check : `${ DIM } ○${ RESET } ` } OpenAI` ,
115112 ) ;
@@ -153,7 +150,7 @@ function printAgentModels(config: InstallConfig): void {
153150
154151function argsToConfig ( args : InstallArgs ) : InstallConfig {
155152 return {
156- hasAntigravity : args . antigravity === 'yes' ,
153+ hasKimi : args . kimi === 'yes' ,
157154 hasOpenAI : args . openai === 'yes' ,
158155 hasOpencodeZen : true , // Always enabled - free models available to all users
159156 hasTmux : args . tmux === 'yes' ,
@@ -192,10 +189,10 @@ async function runInteractiveMode(
192189
193190 try {
194191 console . log ( `${ BOLD } Question 1/${ totalQuestions } :${ RESET } ` ) ;
195- const antigravity = await askYesNo (
192+ const kimi = await askYesNo (
196193 rl ,
197- 'Do you have an Antigravity subscription (via cliproxy) ?' ,
198- 'yes' ,
194+ 'Do you want to use Kimi For Coding ?' ,
195+ detected . hasKimi ? 'yes' : 'no ',
199196 ) ;
200197 console . log ( ) ;
201198
@@ -240,7 +237,7 @@ async function runInteractiveMode(
240237 console . log ( ) ;
241238
242239 return {
243- hasAntigravity : antigravity === 'yes' ,
240+ hasKimi : kimi === 'yes' ,
244241 hasOpenAI : openai === 'yes' ,
245242 hasOpencodeZen : true ,
246243 hasTmux : false ,
@@ -260,7 +257,6 @@ async function runInstall(config: InstallConfig): Promise<number> {
260257
261258 // Calculate total steps dynamically
262259 let totalSteps = 4 ; // Base: check opencode, add plugin, disable default agents, write lite config
263- if ( config . hasAntigravity ) totalSteps += 1 ; // provider config only (no auth plugin needed)
264260 if ( config . installSkills ) totalSteps += 1 ; // skills installation
265261 if ( config . installCustomSkills ) totalSteps += 1 ; // custom skills installation
266262
@@ -278,13 +274,6 @@ async function runInstall(config: InstallConfig): Promise<number> {
278274 const agentResult = disableDefaultAgents ( ) ;
279275 if ( ! handleStepResult ( agentResult , 'Default agents disabled' ) ) return 1 ;
280276
281- if ( config . hasAntigravity ) {
282- printStep ( step ++ , totalSteps , 'Adding cliproxy provider configuration...' ) ;
283- const providerResult = addProviderConfig ( config ) ;
284- if ( ! handleStepResult ( providerResult , 'Cliproxy provider configured' ) )
285- return 1 ;
286- }
287-
288277 printStep ( step ++ , totalSteps , 'Writing oh-my-opencode-slim configuration...' ) ;
289278 const liteResult = writeLiteConfig ( config ) ;
290279 if ( ! handleStepResult ( liteResult , 'Config written' ) ) return 1 ;
@@ -332,7 +321,7 @@ async function runInstall(config: InstallConfig): Promise<number> {
332321
333322 printAgentModels ( config ) ;
334323
335- if ( ! config . hasAntigravity && ! config . hasOpenAI ) {
324+ if ( ! config . hasKimi && ! config . hasOpenAI ) {
336325 printWarning (
337326 'No providers configured. Zen Big Pickle models will be used as fallback.' ,
338327 ) ;
@@ -347,27 +336,13 @@ async function runInstall(config: InstallConfig): Promise<number> {
347336
348337 let nextStep = 1 ;
349338
350- if ( config . hasAntigravity ) {
351- console . log ( ` ${ nextStep ++ } . Install cliproxy:` ) ;
352- console . log ( ` ${ DIM } macOS:${ RESET } ` ) ;
353- console . log ( ` ${ BLUE } $ brew install cliproxyapi${ RESET } ` ) ;
354- console . log ( ` ${ BLUE } $ brew services start cliproxyapi${ RESET } ` ) ;
355- console . log ( ` ${ DIM } Linux:${ RESET } ` ) ;
356- console . log (
357- ` ${ BLUE } $ curl -fsSL https://raw.githubusercontent.com/brokechubb/cliproxyapi-installer/refs/heads/master/cliproxyapi-installer | bash${ RESET } ` ,
358- ) ;
359- console . log ( ) ;
360- console . log ( ` ${ nextStep ++ } . Authenticate with Antigravity via OAuth:` ) ;
361- console . log ( ` ${ BLUE } $ ./cli-proxy-api --antigravity-login${ RESET } ` ) ;
362- console . log (
363- ` ${ DIM } (Add --no-browser to print login URL instead of opening browser)${ RESET } ` ,
364- ) ;
365- console . log ( ) ;
366- }
367-
368- if ( config . hasOpenAI || ! config . hasAntigravity ) {
339+ if ( config . hasKimi || config . hasOpenAI ) {
369340 console . log ( ` ${ nextStep ++ } . Authenticate with your providers:` ) ;
370341 console . log ( ` ${ BLUE } $ opencode auth login${ RESET } ` ) ;
342+ if ( config . hasKimi ) {
343+ console . log ( ) ;
344+ console . log ( ` Then select ${ BOLD } Kimi For Coding${ RESET } provider.` ) ;
345+ }
371346 console . log ( ) ;
372347 }
373348
@@ -388,7 +363,7 @@ async function runInstall(config: InstallConfig): Promise<number> {
388363export async function install ( args : InstallArgs ) : Promise < number > {
389364 // Non-interactive mode: all args must be provided
390365 if ( ! args . tui ) {
391- const requiredArgs = [ 'antigravity ' , 'openai' , 'tmux' ] as const ;
366+ const requiredArgs = [ 'kimi ' , 'openai' , 'tmux' ] as const ;
392367 const errors = requiredArgs . filter ( ( key ) => {
393368 const value = args [ key ] ;
394369 return value === undefined || ! [ 'yes' , 'no' ] . includes ( value ) ;
@@ -402,7 +377,7 @@ export async function install(args: InstallArgs): Promise<number> {
402377 }
403378 console . log ( ) ;
404379 printInfo (
405- 'Usage: bunx oh-my-opencode-slim install --no-tui --antigravity =<yes|no> --openai=<yes|no> --tmux=<yes|no>' ,
380+ 'Usage: bunx oh-my-opencode-slim install --no-tui --kimi =<yes|no> --openai=<yes|no> --tmux=<yes|no>' ,
406381 ) ;
407382 console . log ( ) ;
408383 return 1 ;
0 commit comments