Skip to content

Commit 55125df

Browse files
authored
Self hosting improvements (#169)
* Fix link * Improve docs during local run through
1 parent e680029 commit 55125df

File tree

6 files changed

+89
-50
lines changed

6 files changed

+89
-50
lines changed

pages/home/configure/engine.mdx

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,25 @@ title: "Configuration"
33
description: "Arcade Engine Configuration"
44
---
55

6+
import TableOfContents from "@/components/TableOfContents";
7+
68
# Arcade Engine configuration
79

810
Arcade Engine's configuration is a [YAML file](https://yaml.org/) with the following sections:
911

10-
- [`api`](#api-configuration) - Configures the server for specific protocols
11-
- [`auth`](#auth-configuration) - Configures user authorization providers and token storage
12-
- [`cache`](#cache-configuration) - Configures the short-lived cache
13-
- [`llm`](#model-configuration) - Defines a collection of AI models available for routing
14-
- [`security`](#security-configuration) - Configures security and encryption
15-
- [`storage`](#storage-configuration) - Configures persistent storage
16-
- [`telemetry`](#telemetry-configuration) - Configures telemetry and observability (OTEL)
17-
- [`tools`](#tools-configuration) - Configures tools for AI models to use
12+
<TableOfContents
13+
headers={["Section", "Description"]}
14+
data={[
15+
["API Configuration", "Configures the server for specific protocols"],
16+
["Auth Configuration", "Configures user authorization providers and token storage"],
17+
["Cache Configuration", "Configures the short-lived cache"],
18+
["Model Configuration", "Defines a collection of AI models for routing"],
19+
["Security Configuration", "Configures security and encryption"],
20+
["Storage Configuration", "Configures persistent storage"],
21+
["Telemetry Configuration", "Configures telemetry and observability (OTEL)"],
22+
["Tools Configuration", "Configures tools for AI models to use"],
23+
]}
24+
/>
1825

1926
## Specify a config file
2027

@@ -64,7 +71,7 @@ llm:
6471
6572
## API configuration
6673
67-
HTTP is the only supported protocol for Arcade Engine's API. The following configuration options are available:
74+
HTTP is the supported protocol for Arcade Engine's API. The following configuration options are available:
6875
6976
- `api.development` _(optional, default: `false`)_ - Enable development mode, with more logging and simple [worker authentication](/home/configure/engine#http-worker-configuration)
7077
- `api.http.host` _(default: `localhost`)_ - Address to which Arcade Engine binds its server (e.g., `localhost` or `0.0.0.0`)

pages/home/configure/overview.mdx

Lines changed: 60 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -3,39 +3,67 @@ title: "Configuration Overview"
33
description: "Arcade Engine Configuration Overview"
44
---
55

6+
import { Tabs } from "nextra/components";
7+
8+
# Configuration Overview
9+
10+
Arcade uses configuration files to manage engine settings and default values. When you install the Arcade Engine, two files are created:
11+
12+
- The `engine.yaml` file for engine configuration.
13+
- The `engine.env` file for environment variables.
14+
15+
Let's explore each file to understand their purpose and how to locate them.
16+
17+
## Engine configuration file
18+
19+
The `engine.yaml` file controls Arcade Engine settings and manages supported models. It supports variable expansion so you can integrate secrets and environment values seamlessly. You can customize this file to suit your setup. For more details, check the [Engine Configuration](/home/configure/engine) page.
20+
21+
Choose your installation method to view the default location of `engine.yaml`:
22+
23+
<Tabs items={['macOS (Homebrew)', 'Ubuntu/Debian (APT)', 'Manual Download']}>
24+
<Tabs.Tab>
25+
```bash
26+
$HOMEBREW_REPOSITORY/etc/arcade-engine/engine.yaml
27+
```
28+
</Tabs.Tab>
29+
<Tabs.Tab>
30+
```bash
31+
/etc/arcade-ai/engine.yaml
32+
```
33+
</Tabs.Tab>
34+
<Tabs.Tab>
35+
```bash
36+
$HOME/.arcade/engine.yaml
37+
```
38+
<Note>To manually download the engine.yaml, you can get an example from the [Configuration Templates](/home/configure/templates#engineyaml) and add it to `$HOME/.arcade/engine.yaml`.</Note>
39+
</Tabs.Tab>
40+
</Tabs>
41+
42+
## Engine environment file
43+
44+
The `engine.env` file contains default environment variables that power Arcade Engine. You can override these defaults by exporting your own variables or by editing the file directly.
45+
46+
Select your installation method below to see the default path for `engine.env`:
47+
48+
<Tabs items={['macOS (Homebrew)', 'Ubuntu/Debian (APT)', 'Manual Download']}>
49+
<Tabs.Tab>
50+
```bash
51+
$HOMEBREW_REPOSITORY/etc/arcade-engine/engine.env
52+
```
53+
</Tabs.Tab>
54+
<Tabs.Tab>
55+
```bash
56+
/etc/arcade-ai/engine.env
57+
```
58+
</Tabs.Tab>
59+
<Tabs.Tab>
60+
```bash
61+
$HOME/.arcade/engine.env
62+
```
63+
<Note>To manually download the `engine.env`, refer to the [Configuration Templates](/home/configure/templates#engineenv).</Note>
64+
</Tabs.Tab>
65+
</Tabs>
666

7-
# Configuration
8-
9-
## Configuration Files
10-
On [installation](/home/install/local), Arcade creates an `engine.yaml` configuration file and an `engine.env` environment variable file containing default values.
11-
12-
See the [Specifying a Config File](/home/configure/engine#specify-a-config-file) for usage.
13-
14-
### Engine Configuration
15-
16-
The Engine configuration (`engine.yaml`) location varies based on installation method:
17-
- **Homebrew**: `$HOMEBREW_REPOSITORY/etc/arcade-engine/engine.yaml` (commonly `/opt/homebrew/Cellar/etc/arcade-engine/engine.yaml`)
18-
- **Apt**: `/etc/arcade-ai/engine.yaml`
19-
- **Manual Download**: Manually downloaded configs can be added to `$HOME/.arcade/engine.yaml`
20-
21-
<Note>To manually download the engine.yaml, you can get an example from the [Configuration Templates](/home/configure/templates#engineyaml)</Note>
22-
23-
Engine configurations support variable expansion for [Secrets](/home/configure/engine#secrets) and [Environment Files](/home/configure/engine#dotenv-files).
24-
25-
You can edit the `engine.yaml` file to change configurations for the [Engine](/home/configure/engine) and [Supported Models](/home/configure/models).
26-
27-
### Engine environment file
28-
29-
The Engine environment file (`engine.env`) location varies based on installation method:
30-
- **Homebrew**: `$HOMEBREW_REPOSITORY/etc/arcade-engine/engine.env` (commonly `/opt/homebrew/etc/arcade-engine/engine.env`)
31-
- **Apt**: `/etc/arcade-ai/engine.env`
32-
- **Manual Download**: Manually downloaded configs can be added to `$HOME/.arcade/engine.env`
33-
34-
<Note>To manually download the engine.env, you can get an example from the [Configuration Templates](/home/configure/templates#engineenv)</Note>
35-
36-
37-
The installed file contains default variables to run the Engine locally, and can be changed or
38-
overridden by exporting variables to your environment through the command line.
3967

4068

4169

pages/home/configure/templates.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ description: "Arcade Engine Configuration Templates"
66

77
# Engine Config Templates
88

9-
**engine.yaml**
9+
### engine.yaml
1010
```yaml file=<rootDir>/examples/code/home/configuration/engine/config_template.1.0.yaml
1111

1212
```
1313

14-
**engine.env**
14+
### engine.env
1515
```bash file=<rootDir>/examples/code/home/configuration/engine/engine.env
1616

1717
```

pages/home/install/local.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ This will install a template engine configuration.
5656
</Tabs.Tab>
5757
<Tabs.Tab>
5858
```
59-
Windows support is coming soon!
59+
Windows support is coming soon!
6060
```
6161
Want to see Windows support sooner? Show your interest by adding a 👍 to [this GitHub issue](https://github.com/ArcadeAI/arcade-ai/issues/258).
6262

@@ -85,7 +85,7 @@ Edit the `engine.env` file to set the `OPENAI_API_KEY` environment variable:
8585
OPENAI_API_KEY="<your_openai_api_key>"
8686
```
8787

88-
See the [configuration overview](/home/configure/overview) for more information on how to configure Arcade Engine.
88+
See the [configuration overview](/home/configure/overview) for more information on how to configure Arcade Engine and how to locate the `engine.env` file.
8989

9090
### Start the Engine and worker
9191

@@ -113,7 +113,7 @@ To chat with the running Engine, in a separate terminal instance, run:
113113
arcade chat -h localhost
114114
```
115115

116-
You are now chatting with Arcade locally! To see an example of chatting, view the [quickstart](/home/quickstart).
116+
You are now chatting with Arcade locally! To see an example of chatting, view the [quickstart](/home/custom-tools).
117117

118118
</Steps>
119119

pages/home/install/overview.mdx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,17 @@ description: "Installation options for Arcade"
77

88
Explore the different installation options for Arcade.
99

10-
- [Local](/home/install/local)
11-
- [Docker](/home/install/docker)
10+
- Set up Arcade [locally](/home/install/local)
11+
- Run Arcade in [Docker](/home/install/docker)
1212
- Kubernetes (coming soon)
1313

1414
## Client
1515

16-
The `arcade` SDK can be installed with `pip` by following the [quickstart guide](/home/quickstart).
16+
The Arcade Client can be installed with `pip` by following the [quickstart guide](/home/quickstart).
17+
18+
## SDK
19+
20+
The Arcade SDK can be installed with `pip` by following the [custom tools quickstart guide](/home/custom-tools).
1721

1822
## Engine
1923

src/components/TableOfContents.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import styles from "./TableOfContents.module.css";
1111
function TableOfContents({ headers, data }) {
1212
const handleRowClick = (firstColumnValue) => {
1313
// Convert first column value to a valid ID format
14-
const sectionId = firstColumnValue.toLowerCase().replace(/\s+/g, "");
14+
const sectionId = firstColumnValue.toLowerCase().replace(/\s+/g, "-");
1515
// Update the URL hash to navigate to the section
1616
window.location.hash = `#${sectionId}`;
1717
};

0 commit comments

Comments
 (0)