Connect GitHub from the terminal, then run workflows on BoxLite.
Use this path if you prefer terminal setup or connect from an SSH session. GitHub authorization still requires a browser.For console setup, follow the Quickstart.
Use a BoxLite organization where you are an owner.
Use a GitHub account that owns the target personal account or is an owner of the target GitHub organization.
Sign in
Sign in as an owner of the target BoxLite organization:
boxlite --context cloud auth login
Connect GitHub
Connect the repository owner. For a repository named octo-labs/demo, use octo-labs:
boxlite --context cloud ci connect octo-labs
Follow the browser authorization instructions. If the CLI asks you to install the GitHub app, complete installation and run the connection command again.
Option
When to use it
--allow-private-repositories
Permit private repositories; the GitHub app must also have access to them.
--no-browser
Connect from an SSH session and complete browser authorization on another device.
BOXLITE_API_KEY takes precedence over saved login credentials. To use the saved cloud identity when that variable is set, run env -u BOXLITE_API_KEY boxlite --context cloud ci connect octo-labs.
Run a job
In GitHub connections, confirm Listener is Ready and your repository appears under the connected account.Then change an existing job or run the connection test. The workflow uses the same runs-on labels regardless of how you connected GitHub.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"BoxLite Documentation","colors":{"primary":"#00B0F0","light":"#38C7FF","dark":"#0090C8"},"logo":{"light":"https://mintcdn.com/boxliteai/PJGMTNlEZYO0BQu3/logo/light.png?fit=max\u0026auto=format\u0026n=PJGMTNlEZYO0BQu3\u0026q=85\u0026s=ca289df85e44943aceb95cbf5e4725ea","dark":"https://mintcdn.com/boxliteai/PJGMTNlEZYO0BQu3/logo/dark.png?fit=max\u0026auto=format\u0026n=PJGMTNlEZYO0BQu3\u0026q=85\u0026s=10c7a7b82c7f6d772d5f0659c3d93bef","href":"https://boxlite.ai"},"favicon":"https://mintcdn.com/boxliteai/Jyu4ea7vpdHuIh5x/favicon.svg?fit=max\u0026auto=format\u0026n=Jyu4ea7vpdHuIh5x\u0026q=85\u0026s=c249a888107f6355801fa37f42487b5a","appearance":{"default":"dark"},"background":{"color":{"light":"#FFFFFF","dark":"#13161B"}},"navbar":{"links":[{"icon":"discord","href":"https://go.boxlite.ai/discord","label":"Discord"}],"primary":{"type":"github","href":"https://github.com/boxlite-ai/boxlite"}},"footer":{"socials":{"github":"https://github.com/boxlite-ai","discord":"https://go.boxlite.ai/discord"}},"fonts":{"heading":{"family":"IBM Plex Mono"},"body":{"family":"Inter"}},"styling":{"codeblocks":{"theme":{"light":"github-light","dark":"github-dark"}},"latex":true},"contextual":{"options":["copy","view"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"boxliteai","hasAudioNarration":false,"actualSubdomain":"boxliteai","customDomains":["docs.boxlite.ai"],"gitSource":{"type":"github","owner":"boxlite-ai","repo":"documentation","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":"","_id":"6b10d2a39ffae5051c40bd80"},"feedback":{"thumbs":true,"edits":true,"issues":true},"entitlements":{},"buildId":"6b0d721493a24ce2e22f28f7","clientVersion":"0.0.4458","searchFilterCounts":[{"language":"default","tag":"BoxLite Open Source","count":61},{"language":"default","tag":"BoxLite Cloud","count":52},{"language":"default","tag":"Use cases","count":22},{"language":"default","tag":"Getting started","count":11},{"language":"default","tag":"Agent tools","count":9},{"language":"default","tag":"Manage sandboxes","count":9},{"language":"default","tag":"Contributing","count":8},{"language":"default","tag":"SDK reference","count":7},{"language":"default","tag":"Agent in a box","count":6},{"language":"default","tag":"Architecture","count":6}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[{"filePath":"custom.css","content":":root{--bl-brand: #00b0f0;--bl-brand-bright: #38c7ff;--bl-dark-bg: #13161b;--bl-dark-card: #1a1d24;--bl-dark-code: #0d0f13;--bl-dark-border: #2a2f3a;--bl-dark-dim: #8c919c;--bl-light-card: #f3f4f6;--bl-light-code: #f7f9fc;--bl-light-border: #e2e5ea;--bl-light-dim: #6b7079;--bl-mono: \"IBM Plex Mono\", ui-monospace, \"SFMono-Regular\", \"SF Mono\", monospace;--bl-ring: 196 100% 47%;--bl-accent-light: 220 14% 93%;--bl-accent-dark: 222 14% 16%;--bl-success-light: 137 45% 38%;--bl-warning-light: 38 80% 40%;--bl-danger-light: 5 71% 50%;--bl-info-light: 196 100% 47%;--bl-success-dark: 137 60% 60%;--bl-warning-dark: 43 72% 57%;--bl-danger-dark: 5 71% 58%;--bl-info-dark: 196 100% 47%;--bl-shadow-card-light: 0 1px 2px #1018280a, 0 8px 24px -10px #1018281a;--bl-shadow-card-hover-light: 0 2px 4px #1018280f, 0 14px 32px -12px #10182824;--bl-shadow-card-dark: 0 1px 2px #0006, 0 10px 28px -8px #0000008c;--bl-shadow-card-hover-dark: 0 2px 4px #00000080, 0 16px 36px -10px #000000a6}*,*::before,*::after{border-radius:0!important}[class*=\"rounded-full\"],img[class*=\"rounded-full\"],[class*=\"avatar\"],[role=\"switch\"],[role=\"switch\"] *{border-radius:9999px!important}code,pre,kbd,samp,tt{font-family:var(--bl-mono)!important}::selection{background:var(--bl-brand);color:#ffffff}*{scrollbar-width:thin}*::-webkit-scrollbar{width:9px;height:9px}*::-webkit-scrollbar-thumb{background:var(--bl-dark-border)}*::-webkit-scrollbar-thumb:hover{background:var(--bl-brand)}*::-webkit-scrollbar-track{background:transparent}.card{background-color:var(--bl-light-card)!important;border:1px solid var(--bl-light-border)!important;box-shadow:var(--bl-shadow-card-light)!important;transition:background-color 0.12s ease, box-shadow 0.12s ease!important}.card:hover{background-color:hsl(var(--bl-accent-light))!important;box-shadow:var(--bl-shadow-card-hover-light)!important}.dark .card{background-color:var(--bl-dark-card)!important;border-color:var(--bl-dark-border)!important;box-shadow:var(--bl-shadow-card-dark)!important}.dark .card:hover{background-color:hsl(var(--bl-accent-dark))!important;box-shadow:var(--bl-shadow-card-hover-dark)!important}.code-block{border:1px solid var(--bl-light-border)!important;box-shadow:none!important}.dark .code-block{border-color:var(--bl-dark-border)!important}html.dark .code-block div[class*=\"bg-codeblock\"]{--shiki-dark-bg: var(--bl-dark-code) !important;background-color:var(--bl-dark-code)!important}html:not(.dark) .code-block div[class*=\"bg-codeblock\"]{background-color:var(--bl-light-code)!important}:not(pre)>code{background-color:rgba(0, 176, 240, 0.07)!important;border:1px solid var(--bl-light-border)!important;padding:0.05em 0.34em!important;font-size:0.86em!important}.dark :not(pre)>code{background-color:rgba(0, 176, 240, 0.1)!important;border-color:var(--bl-dark-border)!important}table.table th,table.table td{border:1px solid var(--bl-light-border)!important}.dark table.table th,.dark table.table td{border-color:var(--bl-dark-border)!important}table.table th{font-family:var(--bl-mono)!important;text-transform:uppercase;letter-spacing:0.06em;font-size:0.78em;font-weight:600}.dark table.table thead{background-color:var(--bl-dark-card)}html:not(.dark) table.table thead{background-color:var(--bl-light-card)}.sidebar-title{font-family:var(--bl-mono)!important;text-transform:uppercase!important;letter-spacing:0.12em!important;font-size:10px!important;font-weight:600!important;color:var(--bl-light-dim)!important}.dark .sidebar-title{color:var(--bl-dark-dim)!important}.eyebrow{font-family:var(--bl-mono)!important;text-transform:uppercase!important;letter-spacing:0.5px!important;font-size:10px!important}.steps .step-container [class*=\"rounded-full\"]{background-color:rgba(0, 176, 240, 0.14)!important;border:1px solid var(--bl-brand)!important;color:var(--bl-brand-bright)!important}.callout{border-width:1px 1px 1px 3px!important;box-shadow:none!important}.dark .callout[class*=\"blue\"]{border-color:var(--bl-brand)!important;background-color:rgba(0, 176, 240, 0.1)!important}html:not(.dark) .callout[class*=\"blue\"]{border-color:var(--bl-brand)!important;background-color:rgba(0, 176, 240, 0.07)!important}.accordion-group{border:1px solid var(--bl-light-border)!important}.dark .accordion-group{border-color:var(--bl-dark-border)!important}#navigation-items,#navigation-items a,#table-of-contents-content,.toc,.toc a,nav:has(#table-of-contents-content){font-family:var(--bl-mono)!important}#navigation-items a,.toc a{font-size:13px!important}#navbar a.select-none img,#navbar a[href=\"/\"] img{height:40px!important;max-height:40px!important;width:auto!important;max-width:none!important}.sticky.top-0.pointer-events-none[class*=\"bg-gradient-to-b\"]{background-image:none!important}#navigation-items .sidebar-group,#navigation-items div:has(>.sidebar-group-header){margin-top:4px!important}#navigation-items .sidebar-group:has([aria-expanded=\"true\"]),#navigation-items div:has(>.sidebar-group-header){margin-top:14px!important}#navigation-items div:has(>.sidebar-group-header)>.sidebar-group{margin-top:6px!important}#navigation-items .sidebar-group:first-child,#navigation-items>div>div:first-child{margin-top:0!important}#content-area h1,article h1{font-size:30px!important;line-height:36px!important}#content-area h2,article h2{font-size:21px!important;line-height:30px!important}#content-area h3,article h3{font-size:17px!important;line-height:26px!important}a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[role=\"button\"]:focus-visible,[role=\"tab\"]:focus-visible,[role=\"switch\"]:focus-visible,[tabindex]:not([tabindex=\"-1\"]):focus-visible{outline:1px auto hsl(var(--bl-ring) / 0.5)!important;outline-offset:1px!important}.card:focus-visible,a:focus-visible .card{background-color:hsl(var(--bl-accent-light))!important;outline:1px auto hsl(var(--bl-ring) / 0.5)!important;outline-offset:1px!important}.dark .card:focus-visible,.dark a:focus-visible .card{background-color:hsl(var(--bl-accent-dark))!important}#search-bar-entry:focus-visible,[id*=\"search\"] input:focus-visible{outline:1px auto hsl(var(--bl-ring) / 0.5)!important;outline-offset:1px!important}*:focus-visible{outline-style:auto!important}#content-area blockquote:not(.sr-only),article blockquote:not(.sr-only){border-left:3px solid var(--bl-brand)!important;border-top:0!important;border-right:0!important;border-bottom:0!important;background-color:rgba(0, 176, 240, 0.07)!important;padding:12px 16px!important}.dark #content-area blockquote:not(.sr-only),.dark article blockquote:not(.sr-only){background-color:rgba(0, 176, 240, 0.1)!important}html:not(.dark) .callout[class*=\"amber\"],html:not(.dark) .callout[class*=\"yellow\"]{border-color:hsl(var(--bl-warning-light))!important}html:not(.dark) .callout[class*=\"green\"]{border-color:hsl(var(--bl-success-light))!important}html:not(.dark) .callout[class*=\"red\"]{border-color:hsl(var(--bl-danger-light))!important}.dark .callout[class*=\"amber\"],.dark .callout[class*=\"yellow\"]{border-color:hsl(var(--bl-warning-dark))!important}.dark .callout[class*=\"green\"]{border-color:hsl(var(--bl-success-dark))!important}.dark .callout[class*=\"red\"]{border-color:hsl(var(--bl-danger-dark))!important}"}]}
{"page":{"pagePath":"cloud/ci/cli","slug":"/cloud/ci/cli","pageMetadata":{"title":"Connect CI with the CLI","sidebarTitle":"CLI setup","description":"Connect GitHub from the terminal, then run workflows on BoxLite.","href":"/cloud/ci/cli"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Connect GitHub from the terminal, then run workflows on BoxLite.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Use this path if you prefer terminal setup or connect from an SSH session. GitHub authorization still requires a browser.`}),`\n`,_jsxs(_components.p,{children:[`For console setup, follow the `,_jsx(_components.a,{href:`/cloud/ci/quickstart`,children:`Quickstart`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`before-you-start`,children:`Before you start`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/reference/cli#install-and-verify`,children:`Install the BoxLite CLI`}),`.`]}),`\n`,_jsx(_components.li,{children:`Use a BoxLite organization where you are an owner.`}),`\n`,_jsx(_components.li,{children:`Use a GitHub account that owns the target personal account or is an owner of the target GitHub organization.`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`sign-in`,children:`Sign in`}),`\n`,_jsx(_components.p,{children:`Sign in as an owner of the target BoxLite organization:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`boxlite`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --context`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` cloud`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` auth`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` login`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`connect-github`,children:`Connect GitHub`}),`\n`,_jsxs(_components.p,{children:[`Connect the repository owner. For a repository named `,_jsx(_components.code,{children:`octo-labs/demo`}),`, use `,_jsx(_components.code,{children:`octo-labs`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`boxlite`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --context`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` cloud`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` ci`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` connect`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` octo-labs`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Follow the browser authorization instructions. If the CLI asks you to install the GitHub app, complete installation and run the connection command again.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Option`}),_jsx(_components.th,{children:`When to use it`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--allow-private-repositories`})}),_jsx(_components.td,{children:`Permit private repositories; the GitHub app must also have access to them.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--no-browser`})}),_jsx(_components.td,{children:`Connect from an SSH session and complete browser authorization on another device.`})]})]})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`BOXLITE_API_KEY`}),` takes precedence over saved login credentials. To use the saved `,_jsx(_components.code,{children:`cloud`}),` identity when that variable is set, run `,_jsx(_components.code,{children:`env -u BOXLITE_API_KEY boxlite --context cloud ci connect octo-labs`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`run-a-job`,children:`Run a job`}),`\n`,_jsxs(_components.p,{children:[`In `,_jsx(_components.a,{href:`https://app.boxlite.ai/dashboard/ci/connects`,children:`GitHub connections`}),`, confirm `,_jsx(_components.strong,{children:`Listener`}),` is `,_jsx(_components.strong,{children:`Ready`}),` and your repository appears under the connected account.`]}),`\n`,_jsxs(_components.p,{children:[`Then `,_jsx(_components.a,{href:`/cloud/ci/quickstart#change-an-existing-job`,children:`change an existing job`}),` or run the `,_jsx(_components.a,{href:`/cloud/ci/quickstart#verify-a-new-connection`,children:`connection test`}),`. The workflow uses the same `,_jsx(_components.code,{children:`runs-on`}),` labels regardless of how you connected GitHub.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":{"theme":{"light":"github-light","dark":"github-dark"}},"config":{},"pageMetadata":{"title":"Connect CI with the CLI","sidebarTitle":"CLI setup","description":"Connect GitHub from the terminal, then run workflows on BoxLite.","href":"/cloud/ci/cli"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Before you start","slug":"before-you-start","depth":2,"children":[]},{"title":"Sign in","slug":"sign-in","depth":2,"children":[]},{"title":"Connect GitHub","slug":"connect-github","depth":2,"children":[]},{"title":"Run a job","slug":"run-a-job","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"boxliteai","siteName":"BoxLite Documentation","title":"Connect CI with the CLI - BoxLite Documentation","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-27T07:23:44.058Z","originalFileLocation":"cloud/ci/cli.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Connect GitHub from the terminal, then run workflows on BoxLite.\">\u003cmeta data-mint-head name=\"application-name\" content=\"BoxLite Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/boxliteai/tR9zeyYgo5_n9CH3/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/boxliteai/tR9zeyYgo5_n9CH3/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/boxliteai/tR9zeyYgo5_n9CH3/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/boxliteai/tR9zeyYgo5_n9CH3/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/boxliteai/tR9zeyYgo5_n9CH3/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/boxliteai/tR9zeyYgo5_n9CH3/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/boxliteai/tR9zeyYgo5_n9CH3/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/boxliteai/tR9zeyYgo5_n9CH3/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/boxliteai/tR9zeyYgo5_n9CH3/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Connect CI with the CLI - BoxLite Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Connect GitHub from the terminal, then run workflows on BoxLite.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"BoxLite Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.boxlite.ai/cloud/ci/cli\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://boxliteai.mintlify.site/_mintlify/api/og/v2?division=CI\u0026amp;title=Connect+CI+with+the+CLI\u0026amp;description=Connect+GitHub+from+the+terminal%2C+then+run+workflows+on+BoxLite.\u0026amp;theme=119720f12f47f55bc3e7b234\u0026amp;signature=bd4673ca5279b6422b90746b05e9ab12efaa3b0276ef71379378a5446851d1e7\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Connect CI with the CLI - BoxLite Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Connect GitHub from the terminal, then run workflows on BoxLite.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://boxliteai.mintlify.site/_mintlify/api/og/v2?division=CI\u0026amp;title=Connect+CI+with+the+CLI\u0026amp;description=Connect+GitHub+from+the+terminal%2C+then+run+workflows+on+BoxLite.\u0026amp;theme=119720f12f47f55bc3e7b234\u0026amp;signature=bd4673ca5279b6422b90746b05e9ab12efaa3b0276ef71379378a5446851d1e7\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/boxliteai/tR9zeyYgo5_n9CH3/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"BoxLite Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#00B0F0\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.boxlite.ai/cloud/ci/cli\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/cloud/ci/cli.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.boxlite.ai/#organization\",\"name\":\"BoxLite Documentation\",\"url\":\"https://docs.boxlite.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/boxliteai/PJGMTNlEZYO0BQu3/logo/light.png?fit=max\u0026auto=format\u0026n=PJGMTNlEZYO0BQu3\u0026q=85\u0026s=ca289df85e44943aceb95cbf5e4725ea\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.boxlite.ai#website\",\"name\":\"BoxLite Documentation\",\"url\":\"https://docs.boxlite.ai\",\"publisher\":{\"@id\":\"https://docs.boxlite.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.boxlite.ai/cloud/ci/cli#webpage\",\"url\":\"https://docs.boxlite.ai/cloud/ci/cli\",\"name\":\"Connect CI with the CLI\",\"description\":\"Connect GitHub from the terminal, then run workflows on BoxLite.\",\"dateModified\":\"2026-11-27T07:23:44.058Z\",\"isPartOf\":{\"@id\":\"https://docs.boxlite.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.boxlite.ai/cloud/ci/cli#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.boxlite.ai/cloud/ci/cli#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"CI\",\"item\":\"https://docs.boxlite.ai/cloud/ci\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Connect CI with the CLI\",\"item\":\"https://docs.boxlite.ai/cloud/ci/cli\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.boxlite.ai/cloud/ci/cli#article\",\"headline\":\"Connect CI with the CLI\",\"name\":\"Connect CI with the CLI\",\"description\":\"Connect GitHub from the terminal, then run workflows on BoxLite.\",\"url\":\"https://docs.boxlite.ai/cloud/ci/cli\",\"mainEntityOfPage\":{\"@id\":\"https://docs.boxlite.ai/cloud/ci/cli#webpage\"},\"dateModified\":\"2026-11-27T07:23:44.058Z\",\"publisher\":{\"@id\":\"https://docs.boxlite.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.boxlite.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"BoxLite Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"BoxLite Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/cloud/ci/cli.md","siteName":"BoxLite Documentation","nav":{"global":null,"tabs":[{"tab":"BoxLite Open Source","pages":[{"title":"BoxLite Open Source","href":""}]},{"tab":"BoxLite Cloud","groups":[{"group":"Getting started","icon":"cloud","root":{"title":"BoxLite Cloud","sidebarTitle":"What is Cloud","href":"/cloud"},"pages":[{"title":"BoxLite Cloud vs open source","sidebarTitle":"Cloud vs open source","href":"/cloud/vs-opensource"},{"title":"Deploy your first application on BoxLite Cloud","sidebarTitle":"Cloud deployment quickstart","href":"/cloud/quickstart"},{"title":"Manually deploy a GitHub project","sidebarTitle":"Manually deploy a GitHub project","href":"/cloud/deploy-github-app"},{"title":"Host your personal agent on BoxLite Cloud","sidebarTitle":"Agent runtime quickstart","href":"/cloud/agent-runtime"},{"title":"Give your agent a Cloud code interpreter","sidebarTitle":"Code interpreter quickstart","href":"/cloud/code-interpreter"},{"title":"API keys and authentication","sidebarTitle":"API keys","href":"/cloud/api-keys"}]},{"group":"MCP","icon":"plug","root":{"title":"MCP server","href":"/cloud/mcp"},"pages":[]},{"group":"Boxes","icon":"cube","root":{"title":"Boxes","sidebarTitle":"Boxes","href":"/cloud/boxes"},"pages":[{"title":"Choose CPU and memory for a Cloud box","sidebarTitle":"Sizes","href":"/cloud/box-sizes"},{"title":"Box lifecycle on Cloud","sidebarTitle":"Lifecycle","href":"/cloud/box-lifecycle"},{"title":"Create, reuse, and remove a box from code","sidebarTitle":"From code","href":"/cloud/box-from-code"},{"title":"SSH into a Cloud box","sidebarTitle":"SSH access","href":"/cloud/ssh"}]},{"group":"Manually deploy an agent","icon":"robot","root":{"title":"Manually deploy an agent in a box","sidebarTitle":"Manual agent deployment","href":"/cloud/agent-in-box/index"},"pages":[{"title":"Deploy Claude Code on Cloud","sidebarTitle":"Claude Code","href":"/cloud/agent-in-box/claude-code"},{"title":"Deploy Codex on Cloud","sidebarTitle":"Codex","href":"/cloud/agent-in-box/codex"},{"title":"Deploy Pi on Cloud","sidebarTitle":"Pi","href":"/cloud/agent-in-box/pi"},{"title":"Deploy OpenCode on Cloud","sidebarTitle":"OpenCode","href":"/cloud/agent-in-box/opencode"},{"title":"Deploy Hermes on Cloud","sidebarTitle":"Hermes","href":"/cloud/agent-in-box/hermes"}]},{"group":"Images","icon":"layer-group","root":{"title":"Images","sidebarTitle":"Overview","href":"/cloud/images"},"pages":[{"title":"Use your own image","sidebarTitle":"Use your own image","href":"/cloud/use-your-image"},{"title":"Pin a build, and roll it back","sidebarTitle":"Pin a build","href":"/cloud/image-aliases"},{"title":"Use a private image","sidebarTitle":"Private images","href":"/cloud/private-images"},{"title":"What the catalog records","sidebarTitle":"The catalog","href":"/cloud/image-catalog"}]},{"group":"Checkpoints","icon":"camera","root":{"title":"Checkpoints: save and reuse a box","sidebarTitle":"Checkpoints","href":"/cloud/checkpoints"},"pages":[]},{"group":"Volumes","icon":"database","root":{"title":"Volumes","sidebarTitle":"Volumes","href":"/cloud/volumes"},"pages":[{"title":"Create a volume and mount it into a box","sidebarTitle":"Mount a volume","href":"/cloud/mount-a-volume"},{"title":"Create, list, inspect, and delete volumes","sidebarTitle":"Volume CRUD","href":"/cloud/volume-operations"},{"title":"Keep data when the box is gone","sidebarTitle":"Data across boxes","href":"/cloud/data-across-boxes"},{"title":"Volume reference","sidebarTitle":"Reference","href":"/cloud/volume-reference"}]},{"group":"Network","icon":"globe","root":{"title":"Network","sidebarTitle":"Network","href":"/cloud/network"},"pages":[{"title":"How tunnels work","sidebarTitle":"Tunnels","href":"/cloud/tunnels"},{"title":"Serve HTTP from a box and get a public URL","sidebarTitle":"Preview URLs","href":"/cloud/serve-http"},{"title":"Forward a box port to a local port","sidebarTitle":"Port forwarding","href":"/cloud/port-forwarding"},{"title":"Read and write raw bytes over a tunnel","sidebarTitle":"Raw streams","href":"/cloud/raw-streams"},{"title":"Control inbound and outbound access to a box","sidebarTitle":"Network policy","href":"/cloud/network-policy"}]},{"group":"Secrets","icon":"key","root":{"title":"Use API keys without putting them in your box","sidebarTitle":"Secrets","href":"/cloud/secrets"},"pages":[]},{"group":"Domains","icon":"link","root":{"title":"Domains","sidebarTitle":"Domains","href":"/cloud/domains"},"pages":[{"title":"Managed domain","sidebarTitle":"Managed domain","href":"/cloud/managed-domains"},{"title":"Bring your own domain","sidebarTitle":"Bring your own domain","href":"/cloud/custom-domains"}]},{"group":"CI","icon":"code-branch","root":{"title":"BoxLite CI","sidebarTitle":"Overview","href":"/cloud/ci/index"},"pages":[{"title":"Run your first CI job","sidebarTitle":"Quickstart","description":"Connect GitHub and run your first job on a BoxLite runner.","href":"/cloud/ci/quickstart"},{"title":"Connect CI with the CLI","sidebarTitle":"CLI setup","href":"/cloud/ci/cli"},{"title":"Configure CI resources and environment","sidebarTitle":"Resources and environment","description":"Choose CPU, memory, and disk for each job, and understand Docker and file isolation.","href":"/cloud/ci/resources"},{"title":"Manage CI concurrency and usage","sidebarTitle":"Concurrency and billing","href":"/cloud/ci/operations"},{"title":"Troubleshoot CI jobs","sidebarTitle":"Troubleshooting","href":"/cloud/ci/troubleshooting"}]},{"group":"Pricing","icon":"credit-card","root":{"title":"Pricing","sidebarTitle":"Pricing","href":"/cloud/pricing"},"pages":[{"title":"What a box costs","sidebarTitle":"Box costs","href":"/cloud/box-costs"},{"title":"Stop paying for boxes you have finished with","sidebarTitle":"Cost controls","href":"/cloud/cost-controls"},{"title":"Plans and limits","sidebarTitle":"Plans and limits","href":"/cloud/plans"},{"title":"Managing billing","sidebarTitle":"Managing billing","href":"/cloud/billing"}]},{"group":"REST API","icon":"code","root":{"title":"Cloud REST API","sidebarTitle":"Cloud REST API","href":"/cloud/rest-api"},"pages":[]}]},{"tab":"Use cases","pages":[{"title":"Use cases","href":"/use-cases"}]}]},"basePath":"","title":"Connect CI with the CLI - BoxLite Documentation","deploymentId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","buildId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","dynamics":[],"chunks":[]}