``` using var repo = new Repository(repoPath); var remote = repo.Network.Remotes["origin"]?.Url; ``` Remote will contain both the user & the token used in cloning. `https://git-user:git-access-token@github.com/orgname/reponame.git`