> For the complete documentation index, see [llms.txt](https://config.wiki.teamresourceful.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://config.wiki.teamresourceful.com/creating-your-first-config.md).

# Creating Your First Config

Now that you've installed the dependency and have access to the library code we can go ahead and start creating your first config. Configs in Resourceful Config are annotation based meaning that everything for a config must have a corresponding annotation.&#x20;

## Your First Config Class

To create your first config class you need to annotate a class with the @Config annotation this annotation has 3 parameters but we can just care about the `value` one for now as the other 2 it has  default values. The `value` parameter in this case is the name of the config and is limited to basic characters as it is used for the name of the config file.\
\
The other 2 parameters it has are `categories` which we will get into later and `version` version is used in conjunction with a config patcher which you can optionally register with your config to allow you to update between versions to make your config fix itself on updates.

Heres what it should look like.

```java
@Config(value = "demo")
public class DemoConfig {
    // Your config entries...
}
```

{% hint style="info" %}
**Note**

Config class have certain restrictions they must follow. The following are restrictions that a config class must follow.

* Class must have the public access modifier
* Class must be static if it is an inner class of another
* Class must not be an enum, interface, annotation, or a record.
  {% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://config.wiki.teamresourceful.com/creating-your-first-config.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
