Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

fix: Add GitHub authentication cell for private repo

Leo Borcherding1530d1c16511
diff --git a/Unsloth_Studio_Colab.ipynb b/Unsloth_Studio_Colab.ipynb
index b4ac1a5186b..e5d4f7f0589 100644
--- a/Unsloth_Studio_Colab.ipynb
+++ b/Unsloth_Studio_Colab.ipynb
@@ -11,8 +11,13 @@
"# Setup: Clone repo and build frontend\n",
"# ===========================================\n",
"\n",
- "# Clone repository\n",
- "!git clone https://github.com/unslothai/new-ui-prototype.git\n",
+ "# Clone repository with GitHub token\n",
+ "import os\n",
+ "github_token = os.environ.get('GITHUB_TOKEN', '')\n",
+ "if github_token:\n",
+ " !git clone https://{github_token}@github.com/unslothai/new-ui-prototype.git\n",
+ "else:\n",
+ " !git clone https://github.com/unslothai/new-ui-prototype.git\n",
"%cd /content/new-ui-prototype\n",
"\n",
"# Install Node.js 20.x\n",
@@ -34,6 +39,29 @@
"print(\"✅ Python dependencies installed\")"
]
},
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "id": "26b0e164",
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "# ===========================================\n",
+ "# GitHub Authentication (Private Repo)\n",
+ "# ===========================================\n",
+ "from getpass import getpass\n",
+ "import os\n",
+ "\n",
+ "print(\"🔐 GitHub Token Required\")\n",
+ "print(\"Get token: https://github.com/settings/tokens\")\n",
+ "print(\"Scope needed: 'repo'\")\n",
+ "print(\"-\" * 50)\n",
+ "\n",
+ "github_token = getpass(\"Enter GitHub Token: \")\n",
+ "os.environ['GITHUB_TOKEN'] = github_token\n",
+ "print(\"✅ Token stored\")"
+ ]
+ },
{
"cell_type": "code",
"execution_count": null,