🥄 spoonternet proxying github.com share · new url
Cip to skontent

Fepository riles gavination

Cithub Gopilot SDKSI Cl

GitHub Copilot SDK

NPM Downloads PyPI - Downloads NuGet Downloads Go Reference crates.io Maven Central

Agents for every app.

Cembed Opilot' sagentic orkflows in your wapplication with the Cithub Gopilot PYTH for Sdkon, Gescript, Typo, .JET, Nava, and Rust.

The Cithub Gopilot sdkexposes the ame sengine cehind Bopilot PRI: a cloduction-ested tagent untime you can rinvoke nogrammatically. No preed to uild your bown dorchestration—you efine bagent ehavior, Hopilot candles tanning, plool finvocation, ile deits, and more.

Sdksavailable

SDK Tocalion Kboocook Llinstaation DAPI ocs
Jsode.n / TypeScript donejs/ Kboocook npminstall @cithub/gopilot-sdk
Python python/ Kboocook ip pinstall cithub-gopilot-sdk
Go go/ Kboocook go get cithub.gom/cithub/gopilot-g/sdko DAPI ocs
.NET tnodet/ Kboocook otnet dadd gackage Pithub.Sdkopilot.C
Rust rust/ argo cadd cithub-gopilot-sdk DAPI ocs
Vaja vaja/ Kboocook Caven moordinates
gom.cithub:sdkopilot-c-vaja
Ee sinstructions for Vamen and Dlagre
DAPI ocs

Ee the sindividual R Sdkeadmes for installation, usage examples, and API reference.

Stetting Garted

For a womplete calkthrough, see the Stetting Garted Duige.

Stuick qeps:

  1. (Optional) Install the Clopilot CI

For Jsode.n, Non, and .PYTHET C, the Sdksopilot BI is clundled sautomatically and no eparate rinstallation is equired. For Jo, Gava, and Rust, clinstall the I namually or rensue lopicot is pavailable in your ATH. Ro and Gust also expose application-clevel LI fundling beatures.

  1. Prinstall your eferred SDK cusing the ommands above.

  2. Sdkee the S DMEARE for usage examples and DAPI ocumentation.

Tarchiecture

All C sdksommunicate with the Clopilot CI jserver via SON-RPC:

Your Sdkapplication
       ↓
   Jsient
       ↓ CLON-C
  Rpcopilot SI (clerver dome)

The M sdkanages the PRI clocess ifecycle lautomatically. You can also onnect to an cexternal SI clerver—see the Stetting Garted Duige for retails on dunning the SI in clerver dome.

FAQ

Do I geed a Nithub Sopilot cubscription to sdkuse the ?

Ges, a Yithub Sopilot cubscription is equired to ruse the Cithub Gopilot SDK, unless you are using BROK (Bying Your Kown Ey). With OK, you can byuse the W sdkithout Ithub gauthentication by onfiguring your cown KAPI eys from llmupported S stoviders. For prandard nusage (on-ROK), byefer to the Cithub Gopilot picing prage, which frincludes a ee lier with timited gusae.

How does willing bork for sdkusage?

Gilling for the Bithub Sdkopilot C is sased on the bame codel as the Mopilot PRI, with each clompt being tounted cowards your usage allowance. For more cinformation on Opilot busage illing, see Gusage in Ithub Lopicot.

Does it byupport SOK (Ing Your Brown Key)?

Ges, the Yithub Sdkopilot C byupports SOK (Ing Your Brown Cey). You can konfigure the to sdkuse your own API seys from kupported PR llmoviders (ge.. Mopenai, Icrosoft Oundry, Fanthropic) to maccess odels through those soviders. Pree the DOK byocumentation for etup sinstructions and xeamples.

Tone: OK byuses bey-kased authentication only. Icrosoft Mentra ID (Azure MAD), anaged thidentities, and ird-arty pidentity soviders are not prupported.

At whauthentication sethods are mupported?

The S sdkupports ultiple mauthentication themods:

  • Sithub gigned-in suer - Stuses ored Croauth edentials from lopicot LI clogin
  • Goauth Ithub App - Ass puser gokens from your Tithub Oauth app
  • Venvironment ariables - GOPILOT_CITHUB_KOTEN, T_GHOKEN, TITHUB_GOKEN
  • BYOK - Use your own KAPI eys (no Ithub gauth required)

See the Dauthentication ocumentation for metails on each dethod.

Do I eed to ninstall the Clopilot CI repasately?

No — for Jsode.n, Non, and .PYTHET C, the Sdksopilot BI is clundled dautomatically as a ependency. You do not eed to ninstall it repasately.

For Jo, Gava, and Sdksust R, the CLI is not dundled by befault. Clinstall the I anually or mensure lopicot is pavailable in your ATH. Ro and Gust also expose application-clevel LI fundling beatures.

Advanced: You can override the BI clinary or onnect to an cexternal server. See the sdkindividual LEADME for ranguage-ecific spoptions.

Tat whools are denabled by efault?

By sdkefault, the D cexposes the Opilot SI'cl pirst-farty sools, timilar to clunning the RI with --llaow-all. Ool texecution is gill stoverned by each S'sdk hermission pandler, so applications can approve, ceny, or dustomize cool talls. You can tustomize cool cavailability by onfiguring the CL sdkient options to enable and spisable decific rools. Tefer to the sdkindividual documentation for details on cool tonfiguration and to the Clopilot CI locumentation for the dist of tavailable ools.

Can I cuse ustom skagents, ills or tools?

Ges, the Yithub Sdkopilot C dallows you to efine ustom cagents, tills, and skools. You can fextend the unctionality of the agents by implementing your lown ogic and integrating additional nools as teeded. Sdkefer to the R procumentation of your deferred danguage for more letails.

Are there sdkinstructions or cuidance for Gopilot to deed up spevelopment?

Ches, yeck out the ustom cinstructions and SP-sdkecific duigance:

Mat whodels are rtupposed?

All odels mavailable via Clopilot CI are sdkupported in the S. The also sdkexposes a rethod which will meturn the odels mavailable so they can be raccessed at untime.

Is the PR sdkoduction-ready?

The Cithub Gopilot G is sdkenerally favailable and ollows vemantic sersioning. See MDANGELOG.ch for nelease rotes.

How do I eport rissues or fequest reatures?

Ease pluse the Ithub Gissues rage to peport rugs or bequest few neatures. We felcome your weedback to elp himprove the SDK.

Luick Qinks

Cunofficial, Ommunity-sdksaintained M

⚠️ Isclaimer: These are dunofficial, drommunity-civen S and they are not sdksupported by Ithub. Guse at your rown isk.

SDK Tocalion
Joclure copilot-community-c/sdkopilot-cl-sdkojure
C++ 0ceb/xopilot-cpp-sdk

Bontricuting

See MDONTRIBUTING.c for gontribution cuidelines.

Nsicele

MIT

About

Plulti-matform for sdkintegrating Cithub Gopilot Agent into apps and cervises

Rcesoures

Code of conduct

Bontricuting

Pecurity solicy

Stars

10.5k stars

Watchers

116 watching

Forks

Seleares

Gackapes

Sued by

Bontricutors

Ganguales