Skip to main content

fa

Leia em português

Say what you want, in plain language. fa puts the shell command on your prompt, you check it, and press Enter.

fa demo: merging PDFs, converting a document and audio, unzipping

$ fa show the 3 biggest files here
fa> find . -type f -printf '%s %p\n' | sort -nr | head -3
$ fa quem está escutando na porta 8080
fa> sudo ss -ltnp 'sport = :8080'

The terminal stops being a pile of tools to memorize and becomes a place where you write what you want. Nothing runs until you press Enter: you can edit the line, or erase it to cancel. Both your request and the command go to your shell history, so you learn the commands as you go.

Install

You need Python 3.11+ and bash or zsh.

pipx install fala          # or: uv tool install fala · pip install --user fala
fa --install claude        # or codex, agy, pi, anthropic, openai, openrouter, groq, ollama

fa --install adds one line to your ~/.bashrc (or ~/.zshrc), saves which model to use, and sends a test request. Open a new terminal and you're done.

Or ask your coding agent: "install fa (github.com/canpse/fala) using my Claude subscription". The instructions it needs are in AGENTS.md and in fa --agent.

Which model

Any of these works. A small, fast model is enough: the job is turning one sentence into one command.

provider what it uses key
claude your Claude subscription, through the official claude CLI already logged in
codex your ChatGPT subscription, through the official codex CLI already logged in
agy your Antigravity login, through the official agy CLI already logged in
pi whatever pi is logged into already logged in
anthropic Anthropic API ANTHROPIC_API_KEY
openai, openrouter, groq their APIs OPENAI_API_KEY, OPENROUTER_API_KEY, GROQ_API_KEY
ollama, compat a local model, or any OpenAI-compatible API (llama.cpp, vLLM, LM Studio) optional

Time per request measured on a 4-core laptop: pi with fa --service 1.6 s, claude (Haiku) 3.1 s, codex (GPT-6 Luna, low) 4.8 s, agy (Gemini 3.8 Flash Low) 6.3 s.

Change it any time: fa --config provider=codex model=gpt-6-luna. Check it: fa --test. API keys stay in environment variables, never in the config file.

About subscriptions: claude, codex and agy run the official program you installed and logged into yourself, once per request, with no tools enabled. That is ordinary personal use of those programs, but each company sets (and has changed) its own terms. For a team, a server or a product, use an API key.

What goes to the model

Each request sends: the fixed instructions, your current folder path, the names of the files in it (two levels deep, up to 80), and the request. File contents are never sent.

fa --scan is optional and makes answers much better: it records your distribution, tools, network interfaces and running services once, in ~/.config/fa/sistema.txt, and that file goes along with every request. It includes your hostname and local IP addresses. Read or edit it before using a provider you don't trust.

Example packs

fa -n <request> adds network examples to the request (fa -h lists the packs). A pack is a text file of request => command lines with a # flag: x line. Put your own in ~/.config/fa/packs/: they are the place to teach fa the hosts, interfaces and habits of your machine.

Commands

fa <request>              command on your prompt, Enter runs it
fa -n <request>           with the network pack
fa --install [provider]   set up shell, provider and test
fa --config key=value     change settings · fa --config shows them
fa --test                 show what's in use and send a test request
fa --scan                 read this machine once, for better answers
fa --service              keep pi open as a systemd user service (provider pi)
fa --translate <request>  only print the command
fa --agent                instructions for AI agents

Status

Early (0.2.0). Tested on Fedora with bash; zsh support is written but not yet tested. Requests work in any language. Messages are in English, or in Portuguese when your system is. The 0.1 Portuguese option names (--instalar, provedor=...) still work. The tests are in testes/.

License

MIT

Metadata

Release files for fala 0.2.0

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

Source distribution (sdist)

Source distribution for fala 0.2.0
File Size Uploaded Provenance Actions
fala-0.2.0.tar.gz 25.3 kB With provenance Details for fala-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fala 0.2.0
File Interpreter ABI Platform Actions
fala-0.2.0-py3-none-any.whl Python 3 none any Details for fala-0.2.0-py3-none-any.whl

Total release size: 53.7 kB

Release files / fala-0.2.0.tar.gz

Download URL fala-0.2.0.tar.gz
Size 25.3 kB
Tags Source
SHA-256 checksum
How to use checksums
26041f9729e9b8621129b8b8946559abc26760c95eada9a094ecde3f0bb7d658
BLAKE2b-256 checksum
How to use checksums
7b47d41961c18580f3eb3b47597de5d1aac873f72df2a3be4e53e63bc9fcba13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.

Transparency log

Release files / fala-0.2.0-py3-none-any.whl

Download URL fala-0.2.0-py3-none-any.whl
Size 28.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fb6c423fa7d07991fd44453bea3e2b77b2883312e5ecd613fd61c8467c5c76f2
BLAKE2b-256 checksum
How to use checksums
029b2f998e863c40bced8289f7ec3eb32b33c67fc06d88893b5e04323a641c6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.

Transparency log

Security for fala 0.2.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for fala-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.

Transparency log

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