Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 01-01-2025, 03:36 PM   #1
cdhigh
Enthusiast
cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.
 
Posts: 40
Karma: 333334
Join Date: Oct 2011
Device: KINDLE 3
Inkwell - Kindle AI Assistant

In the era of AI, I believe every screen deserves to connect with AI. Based on this idea, I developed Inkwell.
This is a script running on kterm that enhances Kindle's AI connectivity while aligning with Kindle's primary goal: reading and learning.



TLDR: With the Go version, just jailbreak your Kindle and install KUAL.
Extract the binary to /mnt/us and it’s ready to use.

The Python version requires Python 3 installed beforehand.


Key Features:
1. Supports displaying formatted Markdown text in the terminal.
2. Enables AI-powered summarization and interactive learning based on Kindle reading highlights and notes (My Clippings).
3. Allows exporting conversation history as well-formatted eBooks or sending it via email.
4. Supports OpenAI, Google, XAI, Anthropic, Mistral, Groq, Perplexity, and Alibaba.
5. Handles multiple API keys and servers with automatic rotation.

Installation:
1. Ensure your Kindle is jailbroken and has KUAL and Python3 (if python version is used) installed.
2. Extract inkwell.zip to the Kindle's root directory (/mnt/us). You don't need to install Kterm; it's already included in this package.
3. since 1.6, a Go lang port is also provided, no longer depends on Python, offering better startup speed and lower memory usage.
3.1. inkwell-go.zip: For firmware versions below 5.16.3
3.2. inkwell-go-hf.zip: For firmware versions 5.16.3 and above

Configuration:
There are two ways to configure Inkwell:
1. Open the config.json file in the Inkwell directory on your computer, edit the fields, and copy it back to your Kindle.
2. Select Inkwell Setup from the KUAL menu and follow the wizard. Simply press Enter for any unclear steps.


Of course, this script not only supports Kindle but can also run on any device as long as Python is installed.

For more details, visit my GitHub repository.

--
Attached Thumbnails
Click image for larger version

Name:	scr2.png
Views:	185
Size:	57.1 KB
ID:	212750   Click image for larger version

Name:	scr3.png
Views:	133
Size:	46.1 KB
ID:	212751   Click image for larger version

Name:	scr4.png
Views:	123
Size:	43.8 KB
ID:	212752   Click image for larger version

Name:	scr5.png
Views:	118
Size:	53.0 KB
ID:	212753   Click image for larger version

Name:	scr6.png
Views:	132
Size:	45.3 KB
ID:	212755  
Attached Files
File Type: zip inkwell-v1.6-python.zip (447.5 KB, 1 views)
File Type: zip inkwell-v1.6-go.zip (2.85 MB, 0 views)
File Type: zip inkwell-v1.6-go-hf.zip (2.83 MB, 0 views)
File Type: zip inkwell-v1.6-python-hf.zip (442.8 KB, 1 views)

Last edited by cdhigh; Today at 09:06 AM.
cdhigh is offline   Reply With Quote
Old 01-01-2025, 03:55 PM   #2
cdhigh
Enthusiast
cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.
 
Posts: 40
Karma: 333334
Join Date: Oct 2011
Device: KINDLE 3
By the way, you don't need to pay to use AI services—at least for now. APIs from Google, xAI, Mistral, and Groq are free or offer free usage quotas.

The zip package I provided also includes a preconfigured DuckDuckGo demo service, ready to use out of the box, though its availability cannot be guaranteed for long.

Last edited by cdhigh; 01-01-2025 at 04:21 PM.
cdhigh is offline   Reply With Quote
Advert
Old 01-02-2025, 12:42 AM   #3
Hav4k
Junior Member
Hav4k began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Oct 2011
Device: Kindle 3
Thx for the tool!!! No PocketBook support, too? Regards.
Hav4k is offline   Reply With Quote
Old 01-02-2025, 05:48 AM   #4
cdhigh
Enthusiast
cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.
 
Posts: 40
Karma: 333334
Join Date: Oct 2011
Device: KINDLE 3
Quote:
Originally Posted by Hav4k View Post
Thx for the tool!!! No PocketBook support, too? Regards.
In theory, it is all supported as long as Python and a terminal are installed on your e-reader.
If you're interested, you can try running it. Once it works, you can share the format of the summary notes with me, and I can modify the code to read the book summaries.

Inkwell has no third-party library dependencies; all you need on another device is a single file inkwell.py.

Last edited by cdhigh; 01-02-2025 at 05:51 AM.
cdhigh is offline   Reply With Quote
Old 01-02-2025, 06:26 AM   #5
Hav4k
Junior Member
Hav4k began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Oct 2011
Device: Kindle 3
Quote:
Originally Posted by cdhigh View Post
In theory, it is all supported as long as Python and a terminal are installed on your e-reader.
If you're interested, you can try running it. Once it works, you can share the format of the summary notes with me, and I can modify the code to read the book summaries.

Inkwell has no third-party library dependencies; all you need on another device is a single file inkwell.py.
I Will give a try, thanks! But need some assistance...

https://www.mobileread.com/forums/sh...d.php?t=358457

Is here Python for PockeBook Era Color 3?

Thanks for reply.
Hav4k is offline   Reply With Quote
Advert
Old 01-02-2025, 06:40 AM   #6
cdhigh
Enthusiast
cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.
 
Posts: 40
Karma: 333334
Join Date: Oct 2011
Device: KINDLE 3
This version meets the requirements, >=3.8 is sufficient.
cdhigh is offline   Reply With Quote
Old Yesterday, 07:47 PM   #7
cdhigh
Enthusiast
cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.
 
Posts: 40
Karma: 333334
Join Date: Oct 2011
Device: KINDLE 3
Since I developed Inkwell, my son has often been using ChatGPT on his Kindle over the past few months to get answers to various questions (as I don’t allow him to use a smartphone). While reading, he can also easily look up background information about certain chapters in real time.

Because the Kindle has limited memory and the original Inkwell was developed in Python, it consumed relatively large amounts of memory. To solve this, I ported the script to Go lang (which comes with a built-in cross-compilation toolchain). This significantly improves both startup speed and memory usage.

The latest version has been updated in the first post of this thread.

--------------
By the way, I highly recommend this approach to anyone who wants to develop terminal applications for Kindle. There’s no need to struggle with complex C cross-compilation environments anymore. Just use Go — a single command can produce a binary for the target platform:
Code:
GOOS=linux GOARCH=arm GOARM=5 go build app.go
or
Code:
set GOOS=linux
set GOARCH=arm
set GOARM=5
go build app.go
cdhigh is offline   Reply With Quote
Old Today, 07:11 AM   #8
HenriHenry
Junior Member
HenriHenry began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jun 2025
Device: Kindle PW5
Is there a detailed tutorial on how to install this and Python (or Go, whatever this is)
I am completely lost.
I also can't build/compile anything

Can only say this looks amazing!
HenriHenry is offline   Reply With Quote
Old Today, 09:06 AM   #9
cdhigh
Enthusiast
cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.
 
Posts: 40
Karma: 333334
Join Date: Oct 2011
Device: KINDLE 3
Quote:
Originally Posted by HenriHenry View Post
Is there a detailed tutorial on how to install this and Python (or Go, whatever this is)
I am completely lost.
I also can't build/compile anything

Can only say this looks amazing!
inkwell-v1.6-go.zip: Python-free, for firmware below 5.16.3, armv5/armv7 armel ABI
inkwell-v1.6-go-hf.zip: Python-free, for firmware 5.16.3 and above, armv7 armhf ABI
inkwell-v1.6-python.zip: Python-dependent, for firmware below 5.16.3, armv5/armv7 armel ABI
inkwell-v1.6-python-hf.zip: Python-dependent, for firmware 5.16.3 and above, armv7 armhf ABI

With the Go version, just jailbreak your Kindle and install KUAL.
Extract the binary to /mnt/us and it’s ready to use.

The Python version requires Python 3 installed beforehand.

Kterm is already included in zip archive.
cdhigh is offline   Reply With Quote
Reply

Tags
kindle ai kterm clippings


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Reading assistant? Dbuns General Discussions 7 08-21-2022 02:33 PM
Apple Introduces its home assistant HomePod jswinden Apple Devices 20 06-28-2017 04:22 PM
Android Apps - Personal Assistant Premium grafix enTourage Archive 0 04-17-2010 10:05 AM


All times are GMT -4. The time now is 12:56 PM.


MobileRead.com is a privately owned, operated and funded community.