Skip to main content

lana

a simple semi-agentic chatbot interface for gemini built around the terminal.

context

i wanted aistudio in the terminal. but i kept going. after trimming out some feature creep, i settled on a nice little general-purpose cli chatbot with some useful tools.

how ai was used during the creation of this project

  • used to help understand docs
  • used to implement prototype solutions to complicated problems that i then studied/understood and replaced w/ my own solutions
  • the project itself is merely a client for AI APIs

getting started

usage reuirements

to use this tool you need english literacy. also, ideally, you should use a paid api key because you will get ratelimited extremely quickly by google on free tier.

installation

this project is on pypi! you just have to install python and

pip install lana_gemcli
lana

however, if your system does not support direct pip install (f.e. system-managed python packages), you will unfortunately have to run the cli inside a venv. you can look up the relevant documentation for this online.

configuration

the CLI tool name is lana, not lana_gemcli. the CLI uses alt+enter for submit and enter for newlines (this includes commands!) all commands are prefixed with / and do not take any arguments when inferred. instead, they're given settings via user input.

so, for instance, to set the thinking level to high, it would look something like this:

> /set thinking_level [alt+enter]
enter new thinking level: high [alt+enter]
will now use thinking level high

obviously, [alt+enter] would be replaced by you actually pressing alt+enter.

api keys

as expected, a gemini api key is required to use the cli. you can generate one over at https://ai.studio. the cli itself will instruct you on setting one. however, i am also going to provide instructions here:

  1. you install the cli normally and enter.
  2. inside the cli, type /set api_key and press alt+enter.
  3. paste in your api key and press alt+enter again. the cli will now work, but you also want to run /config save to save the api key to your configuration.

conversation

after you've set all your settings, you just type in your prompts and send them with alt+enter. you'll get the ai's response back. there's not much to explain here.

Metadata

Release files for lana-gemcli 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lana-gemcli 1.0.3
File Size Uploaded Provenance Actions
lana_gemcli-1.0.3.tar.gz 1.6 MB Without provenance Details for lana_gemcli-1.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lana-gemcli 1.0.3
File Interpreter ABI Platform Actions
lana_gemcli-1.0.3-py3-none-any.whl Python 3 none any Details for lana_gemcli-1.0.3-py3-none-any.whl

Total release size: 1.6 MB

Release files / lana_gemcli-1.0.3.tar.gz

Download URL lana_gemcli-1.0.3.tar.gz
Size 1.6 MB
Tags Source
SHA-256 checksum
How to use checksums
06251fae4239c9091db2469b4ce763ff0ebed07ceb795983f1f8fe2c59e3f6c4
BLAKE2b-256 checksum
How to use checksums
b894153dda1de0f90286ee1a3e20287fc3630895bd7237f8d05bb3a996dff3aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.14.2

Release files / lana_gemcli-1.0.3-py3-none-any.whl

Download URL lana_gemcli-1.0.3-py3-none-any.whl
Size 22.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6b139991c34686b9f3f9a4d9c47836f5175361edb514d6e499e6a33e51436665
BLAKE2b-256 checksum
How to use checksums
4d76d85125324fae78f7c06fd2911ee0a20ad0e5ed5b21b1940b9103c0273513
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.14.2

Security for lana-gemcli 1.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page