How can I configure my sidebar page?

You can do this by disabling the normal page list in the sidebar by creating a file called .streamlit/config.toml that looks like this streamlit-login/.streamlit/config.toml at main · blackary/streamlit-login · GitHub

Once you’ve done that, you can add whatever you want to add in the sidebar, like this:

import streamlit as st


def switch_page():
    year = st.session_state.year
    st.switch_page(f"pages/{year}.py")


st.sidebar.page_link("pages/incio.py", label="Incio")

st.sidebar.selectbox("Year", ["2013", "2014"], on_change=switch_page, key="year")

You can also take a look at this example New login page navigation example with streamlit 1.31 for a more complex custom sidebar