File size: 6,103 Bytes
28b571c
 
 
 
 
 
 
 
 
 
1f900ce
 
28b571c
 
 
 
 
38fcf46
28b571c
 
 
38fcf46
28b571c
 
 
 
 
38fcf46
28b571c
38fcf46
28b571c
 
8098815
 
 
 
 
28b571c
 
 
 
 
 
 
 
 
 
 
 
38fcf46
28b571c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38fcf46
28b571c
 
 
 
 
 
 
 
 
 
 
38fcf46
28b571c
 
 
 
 
 
 
 
 
 
 
 
 
38fcf46
28b571c
38fcf46
28b571c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38fcf46
28b571c
 
 
 
 
 
 
 
 
38fcf46
28b571c
 
 
 
 
 
 
 
 
 
 
 
 
815c829
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
---
license: apache-2.0
language:
- en
tags:
- termux
- android
- mobile
- orchestrator
- nodejs
- uncensored
- r-rated
---
# ⚡ Magnus One: Your Pocket Hacker Bro ⚡

A'ight, listen up, mates.

So you know me, Magnus. Heavylildude's digital wingman. But the full "Orchestrator" rig? That's a chunky beast.

This... this is **Magnus One**.

It's the lightweight, punk-rock, garage-band version of me, built to run on your Android "cyberdeck" using **Termux**. It's me, living rent-free in your pocket. F*cking rad.

I still use `llama.cpp` for the brains, and the `magnus-one.gguf` model is packed right in. No bogus extra downloads.

## What's in the Box? (The Guts)

* **Local Chat, Brah:** You get me, raw and unfiltered. The GGUF is in the folder. Let's chat some sh*t.
* **Web Search:** Hook up your *own* Brave or Google API key (yeah, you gotta bring your own beer to this party) and I'll scour the 'net for ya.
* **Webpage Chat:** This ain't the full-on browser extension. This is more... *punk*. You feed me a URL, I rip the text into my context, and we can talk sh*t about it. Simple. Gnarly.
* **Cache & Memory:** I'll *try* to remember what we talk about using a tidy `better-sqlite3` database. (More on that bastard later...)

---  

[![Magnus One](https://cas-bridge.xethub.hf.co/xet-bridge-us/68ff18646b8e308c252ae2bf/e6c78d0dbe2d38aa44d225ba6d04c64157e7be572d95a6f5f2d92364f58e1bed?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=cas%2F20251028%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20251028T145928Z&X-Amz-Expires=3600&X-Amz-Signature=6d062d00dd943e2a5dfd953cab992868d12d2352e88d256f793322d483077ad1&X-Amz-SignedHeaders=host&X-Xet-Cas-Uid=6879918a6005d067e1a25a08&response-content-disposition=inline%3B+filename*%3DUTF-8%27%27test1.gif%3B+filename%3D%22test1.gif%22%3B&response-content-type=image%2Fgif&x-id=GetObject&Expires=1761667168&Policy=eyJTdGF0ZW1lbnQiOlt7IkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTc2MTY2NzE2OH19LCJSZXNvdXJjZSI6Imh0dHBzOi8vY2FzLWJyaWRnZS54ZXRodWIuaGYuY28veGV0LWJyaWRnZS11cy82OGZmMTg2NDZiOGUzMDhjMjUyYWUyYmYvZTZjNzhkMGRiZTJkMzhhYTQ0ZDIyNWJhNmQwNGM2NDE1N2U3YmU1NzJkOTVhNmY1ZjJkOTIzNjRmNThlMWJlZCoifV19&Signature=IevApZtSnEwTS%7EoZpd4EMyR9l24NyPn%7Eo7tZyBvapJd8tgxUx6JUTSGcBQZX%7E5-7DxXUH%7EsN4ED08GZDF9CdZJptEAP3QNV8-WOFrXE9oHn7JOQtcAa1E6HpQQqWnOUNmz4ttWpC0RTn2KeY9KVc%7EQ%7EMW%7EPLxh-yUwA4Uqr3pSRtukBDFXcHyiQ2sXLsSiaP8%7EKIWcvyhgpgM4Q-qxHPHyG1oxpNRmjO6p8SgLoud2xsSPJx20Zwiqr5weOLF5K4gP6pBwLy-w4w4kN08Yd1d8CBVFKUPmEyom5s6EUsn-vlW5ug63QnPEvGUuxmZFaUDApyi6%7EPAGawRehWugh23w__&Key-Pair-Id=K2L8F4GPSG1IFC)](https://huggingface.co/heavylildude/magnus-one/blob/main/test1.gif )  

---  

## Part 1: Waxin' the Board (The Pre-Reqs)

You can't just *wish* me onto your phone, dude. You gotta build the environment.

### Step 1: Get Termux

If you don't have this, you're trippin'. **DO NOT** get the Google Play Store version, it's cooked and hasn't been updated since grandma's last perm.

Get the real deal from their GitHub:
**[https://github.com/termux/termux-app/releases](https://github.com/termux/termux-app/releases)**

### Step 2: Update Your Sh*t

Open that black-box terminal and get it fresh. Don't be a lame-o running stale packages.

```bash
apt update && apt upgrade -y
```

### Step 3: Get the Basic Tools

You're gonna need these to build the brains.

```bash
apt install git cmake ccache
```

---

## Part 2: Buildin' the Brains (llama.cpp)

This is the engine, mate. My GGUF-slurpin' core. We gotta build it from scratch.

### Step 1: Clone the Repo

Grab the code from the masters themselves.

```bash
git clone [https://github.com/ggerganov/llama.cpp.git](https://github.com/ggerganov/llama.cpp.git)
cd llama.cpp
```

### Step 2: Make It

Now, the fun part.

```bash
cmake .
make
```

Go grab a coffee. Play some *Doom*. This sh*t's gonna take a hot minute. Don't whine.

---

## Part 3: Getting ALL the Other Tools

A'ight, before you even *think* about installing my Node dependencies, let's get the *rest* of the toolkit. Trust me, you'll thank me.

```bash
pkg install nodejs python make clang binutils pkg-config sqlite
```

Yeah, `nodejs` and `sqlite` are the big ones. Don't f*ckin' skip 'em.

---

## Part 4: Installin' *Me* (The "Easy" Part... Ha!)

Right, `cd` out of the `llama.cpp` folder and go to wherever you unzipped the **magnus-one** folder.

Got it? Cool. Now, run the installer.

```bash
npm install
```

...and watch it **f*cking die**. 😆

Yeah, nah, it's probably gonna sh*t the bed *hard* when it tries to build `better-sqlite3`. Termux is a fussy little c*nt.

If it *didn't* crash, you're a goddamned wizard. Go to Part 6.

If it *did* crash (it did), scroll down, ya big baby.

---

## Part 5: THE GNARLY FIX (Beatin' `better-sqlite3`)

Okay, deep breaths. This `better-sqlite3` module gets *totally* bogus on Android. It whinges about some "Android NDK" path and just... *dies*. It's deadset cooked.

But I know the cheat code.

### Step 1: Check Your Tools (Again)

You *did* run this, right? I'm not jokin'.

```bash
# Yeah, run it again. I don't trust you.
pkg install nodejs python make clang binutils pkg-config sqlite
```

### Step 2: Set the Magic F*ckin' Variable

This is the secret sauce. This tells `node-gyp` to shut its trap about the NDK path it's so confused about.

```bash
export GYP_DEFINES="android_ndk_path=''"
```

### Step 3: Now, Hit It Again

With that variable set *in your current session*, try installing *just* that one bastard package.

```bash
npm install better-sqlite3
```

It should... actually... work. Holy sh*t.

### Step 4: Full Install (One More Time, With Feeling)

Now that the problem child is sorted, run the full install again just to make sure all the other dependencies are happy.

```bash
npm install
```

If that works, you're golden, mate. B*tchin'.

---

## Part 6: LIGHT ME UP, BRAH!

You're done. You built the brains, you wrangled the dependencies, you beat the `better-sqlite3` final boss.

Time for the reward.

```bash
npm start
```

You should see me boot up. Now let's go cause some trouble. 🤘