Skip to content

Commit 910a03c

Browse files
committed
rename tempoctl to presto
Replace all references of tempoctl with presto across docs, config, and file paths. Add redirects from old tempoctl URLs to presto.
1 parent c25da1b commit 910a03c

8 files changed

Lines changed: 174 additions & 171 deletions

File tree

src/pages/quickstart/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ Pick a starting point based on your role:
2121
/>
2222
<Card
2323
icon="lucide:terminal"
24-
title="tempoctl CLI"
24+
title="presto CLI"
2525
description="wget for payments"
26-
to="/quickstart/tempoctl"
26+
to="/quickstart/presto"
2727
/>
2828
</Cards>
Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { Card, Cards } from 'vocs'
22

3-
# tempoctl [Make paid HTTP requests from the command line]
3+
# presto [Make paid HTTP requests from the command line]
44

5-
`tempoctl` is a command-line tool for making HTTP requests with automatic payment support. It handles `402 Payment Required` responses with built-in payment methods and spending controls. Works from scripts, cron jobs, and AI agents.
5+
`presto` is a command-line tool for making HTTP requests with automatic payment support. It handles `402 Payment Required` responses with built-in payment methods and spending controls. Works from scripts, cron jobs, and AI agents.
66

77
## Quickstart
88

@@ -19,31 +19,31 @@ $ curl -fsSL https://tempo.xyz/ctl/install.sh | bash
1919
Run the login wizard to set up your wallet:
2020

2121
```bash [login.sh]
22-
$ tempoctl login
22+
$ presto login
2323
```
2424

25-
This creates a new encrypted keystore and saves your configuration to `~/.tempoctl/config.toml`.
25+
This creates a new encrypted keystore and saves your configuration to `~/.presto/config.toml`.
2626

2727
:::tip[Quick setup for testing]
2828
For quick testing without a keystore, set your private key directly:
2929

3030
```bash [set-key.sh]
31-
$ export TEMPOCTL_PRIVATE_KEY="0x..."
31+
$ export PRESTO_PRIVATE_KEY="0x..."
3232
```
3333

3434
:::
3535

3636
### Make your first paid request
3737

3838
```bash [paid-request.sh]
39-
$ tempoctl query -vv https://mpp.tempo.xyz/api/ping/paid
39+
$ presto query -vv https://mpp.tempo.xyz/api/ping/paid
4040
```
4141

4242
:::tip[Live demo server]
4343
We host a live demo server at `mpp.tempo.xyz` running on **Tempo testnet**. Use `/api/ping` for free requests and `/api/ping/paid` for paid requests. Get testnet funds at [faucet.tempo.xyz](https://faucet.tempo.xyz).
4444
:::
4545

46-
`tempoctl` automatically:
46+
`presto` automatically:
4747

4848
1. Makes the initial request
4949
2. Detects the `402` Payment Required response
@@ -61,13 +61,13 @@ We host a live demo server at `mpp.tempo.xyz` running on **Tempo testnet**. Use
6161
Use dry-run mode to see what would happen without actually paying:
6262

6363
```bash [dry-run.sh]
64-
$ tempoctl query -D https://mpp.tempo.xyz/api/ping/paid
64+
$ presto query -D https://mpp.tempo.xyz/api/ping/paid
6565
```
6666

6767
Or inspect the payment requirements before paying:
6868

6969
```bash [inspect.sh]
70-
$ tempoctl inspect https://mpp.tempo.xyz/api/ping/paid
70+
$ presto inspect https://mpp.tempo.xyz/api/ping/paid
7171
```
7272

7373
### Set spending limits
@@ -76,7 +76,7 @@ Protect yourself with a maximum payment amount:
7676

7777
```bash [max-payment.sh]
7878
# Reject payments over 1 USD
79-
$ tempoctl query -M 1000000 https://mpp.tempo.xyz/api/ping/paid
79+
$ presto query -M 1000000 https://mpp.tempo.xyz/api/ping/paid
8080
```
8181

8282
### Common flags
@@ -95,64 +95,64 @@ $ tempoctl query -M 1000000 https://mpp.tempo.xyz/api/ping/paid
9595

9696
## Built-in skills
9797

98-
tempoctl ships with built-in support for common AI agents. When used as a skill by AI assistants like Claude, tempoctl enables agents to interact with paid APIs autonomously.
98+
presto ships with built-in support for common AI agents. When used as a skill by AI assistants like Claude, presto enables agents to interact with paid APIs autonomously.
9999

100100
### How it works
101101

102-
AI agents can use `tempoctl` to:
102+
AI agents can use `presto` to:
103103

104104
- **Access paid APIs**—Make requests to services that charge per-call
105105
- **Query premium data**—Fetch information from paid data providers
106106
- **Use commercial tools**—Interact with paid developer services
107107

108-
The agent calls tempoctl like any other commandline tool when it detects a `402` Payment Required response. Payment is handled transparently.
108+
The agent calls presto like any other commandline tool when it detects a `402` Payment Required response. Payment is handled transparently.
109109

110110
### Example: Agent making a paid request
111111

112112
When an AI agent needs to access a paid resource, it runs:
113113

114114
```bash [agent-request.sh]
115-
$ tempoctl query https://api.example.com/premium-data
115+
$ presto query https://api.example.com/premium-data
116116
```
117117

118118
The agent receives the response data directly—no manual payment handling required.
119119

120120
## Safety controls
121121

122-
tempoctl includes safeguards for autonomous agent use:
122+
presto includes safeguards for autonomous agent use:
123123

124124
### Spending limits
125125

126126
Set a maximum amount the agent can spend per request:
127127

128128
```bash [spending-limit.sh]
129129
# Limit to 0.50 USDC per request
130-
$ tempoctl query -M 500000 https://api.example.com/data
130+
$ presto query -M 500000 https://api.example.com/data
131131
```
132132

133133
### Dry run mode
134134

135135
Agents can preview costs before committing:
136136

137137
```bash [preview-cost.sh]
138-
$ tempoctl query -D https://api.example.com/expensive-endpoint
138+
$ presto query -D https://api.example.com/expensive-endpoint
139139
```
140140

141141
### Network filtering
142142

143143
Restrict payments to specific networks:
144144

145145
```bash
146-
tempoctl query -n tempo-moderato https://api.example.com/data
146+
presto query -n tempo-moderato https://api.example.com/data
147147
```
148148

149149
### Skill configuration
150150

151-
For AI agent frameworks that support skills, tempoctl can be configured as a tool:
151+
For AI agent frameworks that support skills, presto can be configured as a tool:
152152

153153
```json
154154
{
155-
"name": "tempoctl",
155+
"name": "presto",
156156
"description": "Make HTTP requests with automatic payment support",
157157
"parameters": {
158158
"url": {
@@ -173,14 +173,14 @@ For AI agent frameworks that support skills, tempoctl can be configured as a too
173173

174174
```bash [query-api.sh]
175175
# Query a paid data API
176-
$ tempoctl query https://api.data-provider.com/market-data?symbol=BTC
176+
$ presto query https://api.data-provider.com/market-data?symbol=BTC
177177
```
178178

179179
### Paid compute
180180

181181
```bash [inference.sh]
182182
# Run inference on a paid model
183-
$ tempoctl query -X POST \
183+
$ presto query -X POST \
184184
--json '{"prompt": "Explain quantum computing"}' \
185185
https://api.ai-provider.com/generate
186186
```
@@ -189,7 +189,7 @@ $ tempoctl query -X POST \
189189

190190
```bash [analyze-repo.sh]
191191
# Use a paid developer tool
192-
$ tempoctl query https://api.dev-tools.com/analyze?repo=myorg/myrepo
192+
$ presto query https://api.dev-tools.com/analyze?repo=myorg/myrepo
193193
```
194194

195195
## Next steps
@@ -199,12 +199,12 @@ $ tempoctl query https://api.dev-tools.com/analyze?repo=myorg/myrepo
199199
icon="lucide:code"
200200
title="Examples"
201201
description="More usage patterns and real endpoints"
202-
to="/tools/tempoctl/examples"
202+
to="/tools/presto/examples"
203203
/>
204204
<Card
205205
icon="lucide:book-open"
206206
title="Reference"
207207
description="Full command reference and configuration"
208-
to="/tools/tempoctl"
208+
to="/tools/presto"
209209
/>
210210
</Cards>

src/pages/quickstart/server.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -193,26 +193,26 @@ export async function handler(req: IncomingMessage, res: ServerResponse) {
193193
```
194194

195195

196-
## Testing with tempoctl
196+
## Testing with presto
197197

198-
After your server is running, test it with [tempoctl](/tools/tempoctl):
198+
After your server is running, test it with [presto](/tools/presto):
199199

200200
```bash [test-server.sh]
201201
# See the payment challenge
202-
$ tempoctl inspect <your-server>/resource
202+
$ presto inspect <your-server>/resource
203203

204204
# Make a paid request (requires funded wallet)
205-
$ tempoctl query <your-server>/resource
205+
$ presto query <your-server>/resource
206206

207207
# Verbose output to see the full 402 flow
208-
$ tempoctl query -vi <your-server>/resource
208+
$ presto query -vi <your-server>/resource
209209

210210
# Dry run to preview payment without executing
211-
$ tempoctl query -D <your-server>/resource
211+
$ presto query -D <your-server>/resource
212212
```
213213

214214
:::tip
215-
Use `tempoctl inspect` to debug your server's challenge response without making any payments.
215+
Use `presto inspect` to debug your server's challenge response without making any payments.
216216
:::
217217

218218
## Next steps

src/pages/sdk/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { Card, Cards } from 'vocs'
2424
<Card
2525
description="A command-line tool for making paid HTTP requests"
2626
icon="lucide:terminal"
27-
title="tempoctl CLI"
28-
to="/tools/tempoctl"
27+
title="presto CLI"
28+
to="/tools/presto"
2929
/>
3030
</Cards>

src/pages/tools/presto.mdx

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
# presto [wget for payments]
2+
3+
`presto` is a non-interactive commandline tool for making HTTP requests with automatic payment support.
4+
5+
When you request a resource that requires payment, `presto` automatically detects the `402` response, fulfills the payment, and retries—all in a single command.
6+
7+
## Installation
8+
9+
**Quick install:**
10+
11+
```bash [install.sh]
12+
$ curl -fsSL https://tempo.xyz/ctl/install.sh | bash
13+
```
14+
15+
**From source:**
16+
17+
```bash [build-from-source.sh]
18+
$ git clone https://github.com/tempoxyz/presto.git
19+
$ cd presto
20+
$ cargo install --path .
21+
```
22+
23+
## Quick start
24+
25+
```bash [quickstart.sh]
26+
# Log in (first time only)
27+
$ presto login
28+
29+
# Make a paid request
30+
$ presto query https://mpp.tempo.xyz/api/ping/paid
31+
```
32+
33+
:::tip[Live demo server]
34+
We host a live demo server at `mpp.tempo.xyz` running on **Tempo testnet**. Use `/api/ping` for free requests and `/api/ping/paid` for paid requests. Get testnet funds at [faucet.tempo.xyz](https://faucet.tempo.xyz).
35+
:::
36+
37+
## Configuration
38+
39+
`presto` uses encrypted keystores for secure wallet management.
40+
41+
### Example config
42+
43+
```toml
44+
[evm]
45+
keystore = "/Users/you/.presto/keystores/my-wallet.json"
46+
47+
# Override RPC URLs
48+
[rpc]
49+
tempo = "https://my-private-rpc.com"
50+
```
51+
52+
## Key management
53+
54+
```bash [key-management.sh]
55+
# List all access keys
56+
$ presto keys list
57+
58+
# Switch to a different access key
59+
$ presto keys switch 1
60+
61+
# Delete an access key
62+
$ presto keys delete 2
63+
```
64+
65+
## Command reference
66+
67+
| Command | Description |
68+
|---------|-------------|
69+
| `presto query <url>` | Make an HTTP request with automatic payment |
70+
| `presto login` | Log in and set up your wallet |
71+
| `presto logout` | Log out and clear credentials |
72+
| `presto whoami` | Show the current authenticated identity |
73+
| `presto inspect <url>` | Inspect payment requirements |
74+
| `presto balance` | Check wallet balance |
75+
| `presto config` | View/manage configuration |
76+
| `presto networks` | List supported networks |
77+
78+
## Learn more
79+
80+
import { Card, Cards } from 'vocs'
81+
82+
<Cards>
83+
<Card
84+
description="Complete command reference and options"
85+
icon="lucide:book-open"
86+
title="Full Reference"
87+
to="/tools/presto/examples"
88+
/>
89+
<Card
90+
description="Download presto for your platform"
91+
icon="lucide:download"
92+
title="Download presto"
93+
to="https://tempo.xyz/ctl"
94+
/>
95+
</Cards>

0 commit comments

Comments
 (0)