# Expose credential methods from LibGit2 in Pkg.jl

**URL:** <https://discourse.julialang.org/t/expose-credential-methods-from-libgit2-in-pkg-jl/111261>\
**Category:** Internals & Design\
**Tags:** question, package\
**Created:** [March 6, 2024, 9:11pm UTC](https://discourse.julialang.org/t/expose-credential-methods-from-libgit2-in-pkg-jl/111261 "2024-03-06T21:11:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lklein](https://avatars.discourse-cdn.com/v4/letter/l/839c29/32.png) [@lklein](https://discourse.julialang.org/u/lklein)\
**Post date:** [March 6, 2024, 9:11pm UTC](https://discourse.julialang.org/t/expose-credential-methods-from-libgit2-in-pkg-jl/111261/1 "2024-03-06T21:11:49Z")

</div>

LibGit2 offers some opportunities to Manage credentials explicitly (SSHCredential and UserPasswordCredential for example). Has there ever been made any effort to expose those to the user of Pkg.jl?  
Or if not does anyone know why it was chosen to not expose those to the user?

It would be really convenient if one could do:

```julia
julia> using Pkg

julia> Pkg.add(url = "git@github.com:My_User/My_Package.jl.git", creds= my_ssh_key)

```

or

```julia
julia> using Pkg

julia> Pkg.add(url = "https://github.com/My_User/My_Package.jl.git", creds= my_personal_access_token)

```
